1 messages · Page 1 of 1 (latest)
for example i have the following array:
const array: [256]u8 = @splat(0)
I want a function that works on chunks of 16 bytes from this array, something like this
fn myFunction(slice: *[16]u8) { ... }
...
myFunction(array[idx..idx+16]);
can i have this or must i use *[]u8 and hope the length is right
array[idx..][0..16]