Home
last modified time | relevance | path

Searched refs:cached_slice (Results 1 - 3 of 3) sorted by relevance

/commonlibrary/rust/ylong_json/src/reader/
H A Dmod.rs59 fn cached_slice(&mut self) -> Option<&[u8]>; in cached_slice() functions
H A Dio_reader.rs204 fn cached_slice(&mut self) -> Option<&[u8]> { in cached_slice() functions
516 /// UT test case for `IoReader::cached_slice`.
523 /// 2. Call `IoReader::cached_slice`.
531 assert_eq!(io_reader.cached_slice(), None); in ut_io_reader_cached_slice()
533 assert_eq!(io_reader.cached_slice(), Some([].as_slice())); in ut_io_reader_cached_slice()
/commonlibrary/rust/ylong_json/src/
H A Dstates.rs244 vec.extend_from_slice(deserializer.reader.cached_slice().unwrap());
251 vec.extend_from_slice(deserializer.reader.cached_slice().unwrap());
426 unsafe { core::str::from_utf8_unchecked(deserializer.reader.cached_slice().unwrap()) };

Completed in 4 milliseconds