Searched refs:peek_tag (Results 1 – 3 of 3) 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()510 uint8 peek_tag = PeekTag(stream); in ParseFloatFeature() local511 if (peek_tag == kDelimitedTag(1)) { // packed in ParseFloatFeature()529 } else if (peek_tag == kFixed32Tag(1)) { in ParseFloatFeature()561 uint8 peek_tag = PeekTag(stream); in ParseInt64Feature() local[all …]
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()1900 uint8 peek_tag = PeekTag(stream); in ParseFloatFeature() local1901 if (peek_tag == kDelimitedTag(1)) { // packed in ParseFloatFeature()1919 } else if (peek_tag == kFixed32Tag(1)) { in ParseFloatFeature()1951 uint8 peek_tag = PeekTag(stream); in ParseInt64Feature() local[all …]
1148 named!(peek_tag<&[u8],&[u8]>, peek!(tag!("abcd"))); in peek()1150 assert_eq!(peek_tag(&b"abcdef"[..]), Ok((&b"abcdef"[..], &b"abcd"[..]))); in peek()1151 assert_eq!(peek_tag(&b"ab"[..]), Err(Err::Incomplete(Needed::Size(4)))); in peek()1153 peek_tag(&b"xxx"[..]), in peek()