| 468 | } |
| 469 | |
| 470 | bool GetDate(uint64_t* date) { |
| 471 | if (type_ != kDate) { |
| 472 | return false; |
| 473 | } |
| 474 | if (fsize_ == 0) { |
| 475 | return true; |
| 476 | } |
| 477 | if (offset_ + 8 > bsize_) { |
| 478 | return false; |
| 479 | } |
| 480 | memcpy(static_cast<void*>(date), buffer_, 8); |
| 481 | memrev64ifbe(static_cast<void*>(date)); |
| 482 | buffer_ += 8; |
| 483 | offset_ += 8; |
| 484 | return true; |
| 485 | } |
| 486 | |
| 487 | bool GetTimestamp(uint64_t* ts) { |
| 488 | if (type_ != kTimestamp) { |
nothing calls this directly
no outgoing calls
no test coverage detected