| 42 | } |
| 43 | |
| 44 | std::optional<uint16_t> StringConsumer::PeekUint16LE() const |
| 45 | { |
| 46 | if (this->GetBytesLeft() < 2) return std::nullopt; |
| 47 | return static_cast<uint8_t>(this->src[this->position]) | |
| 48 | static_cast<uint8_t>(this->src[this->position + 1]) << 8; |
| 49 | } |
| 50 | |
| 51 | std::optional<uint32_t> StringConsumer::PeekUint32LE() const |
| 52 | { |
no test coverage detected