| 360 | } |
| 361 | |
| 362 | bool GetInt32(int32_t* value) { |
| 363 | if (type_ != kInt32) { |
| 364 | return false; |
| 365 | } |
| 366 | if (fsize_ == 0) { |
| 367 | return true; |
| 368 | } |
| 369 | if (offset_ + 4 > bsize_) { |
| 370 | return false; |
| 371 | } |
| 372 | memcpy(static_cast<void*>(value), buffer_, 4); |
| 373 | memrev32ifbe(static_cast<void*>(value)); |
| 374 | buffer_ += 4; |
| 375 | offset_ += 4; |
| 376 | return true; |
| 377 | } |
| 378 | |
| 379 | bool GetUInt64(uint64_t* value) { |
| 380 | if (type_ != kUInt64) { |
nothing calls this directly
no outgoing calls
no test coverage detected