metal-rs icon indicating copy to clipboard operation
metal-rs copied to clipboard

Byte data arguments

Open kvark opened this issue 6 years ago • 1 comments

We are currently not consistent w.r.t. receiving &[u8] versus bare pointer + size. The former is a safer API but requires the user (sometimes) to convert whatever they have to a slice of u8. The former is tricky, since our methods are not marked as unsafe...

kvark avatar May 07 '18 18:05 kvark

Given that we already use &str rather than NSString everywhere I think we're past being a -sys crate, so slices are preferable IMO 👍

fkaa avatar May 09 '18 08:05 fkaa