| 417 | } |
| 418 | |
| 419 | bool GetInt64(int64_t* value) { |
| 420 | if (type_ != kInt64) { |
| 421 | return false; |
| 422 | } |
| 423 | if (fsize_ == 0) { |
| 424 | return true; |
| 425 | } |
| 426 | if (offset_ + 8 > bsize_) { |
| 427 | return false; |
| 428 | } |
| 429 | memcpy(static_cast<void*>(value), buffer_, 8); |
| 430 | memrev64ifbe(static_cast<void*>(value)); |
| 431 | buffer_ += 8; |
| 432 | offset_ += 8; |
| 433 | return true; |
| 434 | } |
| 435 | |
| 436 | bool GetUInt16(uint16_t* value) { |
| 437 | if (type_ != kUInt16) { |
nothing calls this directly
no outgoing calls
no test coverage detected