| 126 | } |
| 127 | |
| 128 | inline bool ScannerContext::Stream::ReadInt(int32_t* val, Status* status, bool peek) { |
| 129 | uint8_t* bytes; |
| 130 | RETURN_IF_FALSE(ReadBytes(sizeof(uint32_t), &bytes, status, peek)); |
| 131 | *val = ReadWriteUtil::GetInt<uint32_t>(bytes); |
| 132 | return true; |
| 133 | } |
| 134 | |
| 135 | inline bool ScannerContext::Stream::ReadVInt(int32_t* value, Status* status) { |
| 136 | int64_t vlong; |
no outgoing calls
no test coverage detected