| 49 | } |
| 50 | |
| 51 | std::optional<uint32_t> StringConsumer::PeekUint32LE() const |
| 52 | { |
| 53 | if (this->GetBytesLeft() < 4) return std::nullopt; |
| 54 | return static_cast<uint8_t>(this->src[this->position]) | |
| 55 | static_cast<uint8_t>(this->src[this->position + 1]) << 8 | |
| 56 | static_cast<uint8_t>(this->src[this->position + 2]) << 16 | |
| 57 | static_cast<uint8_t>(this->src[this->position + 3]) << 24; |
| 58 | } |
| 59 | |
| 60 | std::optional<uint64_t> StringConsumer::PeekUint64LE() const |
| 61 | { |
no test coverage detected