Lines Matching refs:bytes
20 fn from_bytes<B: ByteOrder>(bytes: &[u8], channels: usize) -> Result<Self, Self::Error>; in from_bytes()
29 bytes: &mut [u8], in to_bytes()
185 fn from_bytes<B: ByteOrder>(bytes: &[u8], channels: usize) -> Result<Self, Self::Error> { in from_bytes()
187 assert_eq!(bytes.len() % STRIDE, 0); in from_bytes()
190 let chunks_ptr = bytes.as_ptr() as *const [u8; STRIDE]; in from_bytes()
191 let chunks_len = bytes.len() / STRIDE; in from_bytes()
208 fn from_bytes<B: ByteOrder>(bytes: &[u8], channels: usize) -> Result<Self, Self::Error> { in from_bytes()
210 assert_eq!(bytes.len() % STRIDE, 0); in from_bytes()
213 let chunks_ptr = bytes.as_ptr() as *const [u8; STRIDE]; in from_bytes()
214 let chunks_len = bytes.len() / STRIDE; in from_bytes()
245 fn from_bytes<B: ByteOrder>(bytes: &[u8], channels: usize) -> Result<Self, Self::Error> { in from_bytes()
247 assert_eq!(bytes.len() % STRIDE, 0); in from_bytes()
250 let chunks_ptr = bytes.as_ptr() as *const [u8; STRIDE]; in from_bytes()
251 let chunks_len = bytes.len() / STRIDE; in from_bytes()
268 fn from_bytes<B: ByteOrder>(bytes: &[u8], channels: usize) -> Result<Self, Self::Error> { in from_bytes()
270 assert_eq!(bytes.len() % STRIDE, 0); in from_bytes()
273 let chunks_ptr = bytes.as_ptr() as *const [u8; STRIDE]; in from_bytes()
274 let chunks_len = bytes.len() / STRIDE; in from_bytes()