Home
last modified time | relevance | path

Searched refs:peek_bytes (Results 1 – 4 of 4) sorted by relevance

/external/rust/crates/quiche/src/
Doctets.rs246 pub fn peek_bytes(&self, len: usize) -> Result<Octets> { in peek_bytes() method
524 pub fn peek_bytes(&mut self, len: usize) -> Result<Octets> { in peek_bytes() method
844 fn peek_bytes() { in peek_bytes() function
850 assert_eq!(b.peek_bytes(5).unwrap().as_ref(), [1, 2, 3, 4, 5]); in peek_bytes()
854 assert_eq!(b.peek_bytes(5).unwrap().as_ref(), [1, 2, 3, 4, 5]); in peek_bytes()
868 assert_eq!(b.peek_bytes(5).unwrap().as_ref(), [1, 2, 3, 4, 5]); in peek_bytes_mut()
872 assert_eq!(b.peek_bytes(5).unwrap().as_ref(), [1, 2, 3, 4, 5]); in peek_bytes_mut()
/external/rust/crates/arbitrary/src/
Dunstructured.rs466 pub fn peek_bytes(&self, size: usize) -> Option<&'a [u8]> { in peek_bytes() method
Dlib.rs787 match str::from_utf8(&u.peek_bytes(size).unwrap()) { in arbitrary()
/external/rust/crates/arbitrary/
DCHANGELOG.md100 * Added the `Unstructured::peek_bytes` method.