#aliased memcpy

1 messages · Page 1 of 1 (latest)

wanton nebula
#

What's a good way to do an aliased memcpy? Like a memmove?

something like

const buf = "hello world";
const idx = 3;
@memcpy(buf[0..buf.len - idx], buf[idx .. buf.len]);
somber belfry
#

std.mem.copyForwards/Backwords