Re: [RFC PATCH 1/1] v4l2-core: rewrite the VP9 library in Rust

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Alice!

On Wednesday, February 28, 2024 11:13 -03, Alice Ryhl <aliceryhl@xxxxxxxxxx> wrote:

> I recommend taking an `*mut u8` here instead of `&mut u8` if you're
> going to use `slice::from_raw_parts_mut`. Or, if cbindgen allows it,
> take an `&mut [u8; 8]` instead and eliminate the unsafe block.

You're right, the signature here can change to `&mut [u8; 8]` instead. This means no unsafe blocks at all.

Thanks for the tip,

-- Daniel






[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux