| 485 | } |
| 486 | |
| 487 | bool GetTimestamp(uint64_t* ts) { |
| 488 | if (type_ != kTimestamp) { |
| 489 | return false; |
| 490 | } |
| 491 | if (fsize_ == 0) { |
| 492 | return true; |
| 493 | } |
| 494 | if (offset_ + 8 > bsize_) { |
| 495 | return false; |
| 496 | } |
| 497 | memcpy(static_cast<void*>(ts), buffer_, 8); |
| 498 | memrev64ifbe(static_cast<void*>(ts)); |
| 499 | buffer_ += 8; |
| 500 | offset_ += 8; |
| 501 | return true; |
| 502 | } |
| 503 | |
| 504 | bool GetDouble(double* value) { |
| 505 | if (type_ != kDouble) { |
nothing calls this directly
no outgoing calls
no test coverage detected