| 101 | } |
| 102 | |
| 103 | inline bool ScannerContext::Stream::SkipText(Status* status) { |
| 104 | int64_t len; |
| 105 | RETURN_IF_FALSE(ReadVLong(&len, status)); |
| 106 | if (len < 0) { |
| 107 | *status = Status("SkipText: length is negative"); |
| 108 | return false; |
| 109 | } |
| 110 | RETURN_IF_FALSE(SkipBytes(len, status)); |
| 111 | return true; |
| 112 | } |
| 113 | |
| 114 | inline bool ScannerContext::Stream::ReadText(uint8_t** buf, int64_t* len, |
| 115 | Status* status) { |
no test coverage detected