MCPcopy Create free account
hub / github.com/Segs/Segs / Get64Bits

Method Get64Bits

Components/BitStream.cpp:359–373  ·  view source on GitHub ↗

* @brief Read upto 8 bytes from input stream and return them as 64bit integer * @return received 64 bit value */

Source from the content-addressed store, hash-verified

357 * @return received 64 bit value
358 */
359int64_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
375uint32_t BitStream::GetAvailSize() const
376{

Callers 2

serializefrom_deltaMethod · 0.80
serializefrom_baseMethod · 0.80

Calls

no outgoing calls

Tested by 2

serializefrom_deltaMethod · 0.64
serializefrom_baseMethod · 0.64