Get float can be only invoked once when after Next
| 326 | |
| 327 | // Get float can be only invoked once when after Next |
| 328 | bool GetFloat(float* value) { |
| 329 | if (type_ != kFloat) { |
| 330 | return false; |
| 331 | } |
| 332 | if (fsize_ == 0) { |
| 333 | return true; |
| 334 | } |
| 335 | if (offset_ + 4 > bsize_) { |
| 336 | return false; |
| 337 | } |
| 338 | memcpy(static_cast<void*>(value), buffer_, 4); |
| 339 | memrev32ifbe(static_cast<void*>(value)); |
| 340 | buffer_ += 4; |
| 341 | offset_ += 4; |
| 342 | return true; |
| 343 | } |
| 344 | |
| 345 | bool GetUInt32(uint32_t* value) { |
| 346 | if (type_ != kUInt32) { |
nothing calls this directly
no outgoing calls
no test coverage detected