Searched refs:peek_tag (Results 1 – 7 of 7) sorted by relevance
212 uint8 peek_tag = PeekTag(&stream); in ParseFloatList() local213 if (peek_tag != kDelimitedTag(1) && peek_tag != kFixed32Tag(1)) { in ParseFloatList()218 if (peek_tag == kDelimitedTag(1)) { // packed in ParseFloatList()288 uint8 peek_tag = PeekTag(&stream); in ParseInt64List() local289 if (peek_tag != kDelimitedTag(1) && peek_tag != kVarintTag(1)) { in ParseInt64List()292 if (peek_tag == kDelimitedTag(1)) { // packed in ParseInt64List()511 uint8 peek_tag = PeekTag(stream); in ParseFloatFeature() local512 if (peek_tag == kDelimitedTag(1)) { // packed in ParseFloatFeature()530 } else if (peek_tag == kFixed32Tag(1)) { in ParseFloatFeature()562 uint8 peek_tag = PeekTag(stream); in ParseInt64Feature() local[all …]
224 fn peek_tag(i: &[u8]) -> IResult<&[u8], &[u8]> { in peek_test() function228 assert_eq!(peek_tag(&b"abcdef"[..]), Ok((&b"abcdef"[..], &b"abcd"[..]))); in peek_test()229 assert_eq!(peek_tag(&b"ab"[..]), Err(Err::Incomplete(Needed::new(2)))); in peek_test()231 peek_tag(&b"xxx"[..]), in peek_test()
197 fn peek_tag() { in peek_tag() function200 assert_eq!(reader.peek_tag().unwrap(), Tag::Integer); in peek_tag()
218 uint8 peek_tag = PeekTag(&stream); in ParseFloatList() local219 if (peek_tag != kDelimitedTag(1) && peek_tag != kFixed32Tag(1)) { in ParseFloatList()224 if (peek_tag == kDelimitedTag(1)) { // packed in ParseFloatList()294 uint8 peek_tag = PeekTag(&stream); in ParseInt64List() local295 if (peek_tag != kDelimitedTag(1) && peek_tag != kVarintTag(1)) { in ParseInt64List()298 if (peek_tag == kDelimitedTag(1)) { // packed in ParseInt64List()1916 uint8 peek_tag = PeekTag(stream); in ParseFloatFeature() local1917 if (peek_tag == kDelimitedTag(1)) { // packed in ParseFloatFeature()1935 } else if (peek_tag == kFixed32Tag(1)) { in ParseFloatFeature()1967 uint8 peek_tag = PeekTag(stream); in ParseInt64Feature() local[all …]
100 fn peek_tag(&self) -> Result<Tag> { in peek_tag() method
99 match reader.peek_tag()? { in to_tokens()
110 - `Decoder::{peek_tag, peek_header}` ([#142])