#How can I make a `[]u8` from a raw pointer to some memory and a length

1 messages · Page 1 of 1 (latest)

late ingot
#

See title

steady wyvern
#

raw_ptr[0..len]

#

the raw_ptr should be [*] or [*c](should only come from generated bindings, dont use this manually)

#

to indicate it points to multiple items.
if its just a * single item pointer, then it just shouldnt be, zig differentiates between them.