* @brief Read upto 8 bytes from input stream and return them as 64bit integer * @return received 64 bit value */
| 357 | * @return received 64 bit value |
| 358 | */ |
| 359 | int64_t BitStream::Get64Bits() |
| 360 | { |
| 361 | int64_t result=0; |
| 362 | uint32_t *res_ptr=reinterpret_cast<uint32_t *>(&result); |
| 363 | int byte_count=GetBits(3); |
| 364 | if( byte_count > 4 ) |
| 365 | { |
| 366 | result=GetBits(BITS_PER_UINT32); |
| 367 | byte_count-=4; |
| 368 | res_ptr+=1; |
| 369 | } |
| 370 | |
| 371 | *res_ptr=GetBits(8*byte_count); |
| 372 | return result; |
| 373 | } |
| 374 | |
| 375 | uint32_t BitStream::GetAvailSize() const |
| 376 | { |
no outgoing calls