| 451 | } |
| 452 | |
| 453 | bool GetInt16(int16_t* value) { |
| 454 | if (type_ != kInt16) { |
| 455 | return false; |
| 456 | } |
| 457 | if (fsize_ == 0) { |
| 458 | return true; |
| 459 | } |
| 460 | if (offset_ + 2 > bsize_) { |
| 461 | return false; |
| 462 | } |
| 463 | memcpy(static_cast<void*>(value), buffer_, 2); |
| 464 | memrev16ifbe(static_cast<void*>(value)); |
| 465 | buffer_ += 2; |
| 466 | offset_ += 2; |
| 467 | return true; |
| 468 | } |
| 469 | |
| 470 | bool GetDate(uint64_t* date) { |
| 471 | if (type_ != kDate) { |
nothing calls this directly
no outgoing calls
no test coverage detected