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

Method appendBitStream

Components/BitStream.h:58–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 void StoreFloat(float val);
57 void StorePackedBits(uint32_t nBits, uint32_t dataBits);
58 void appendBitStream(BitStream &src)
59 {
60 //TODO: optimize this to partial memcopy in special cases ?
61 uint32_t bits_to_store =src.GetReadableBits();
62 while(bits_to_store>32)
63 {
64 StoreBits(32,src.uGetBits(32));
65 bits_to_store-=32;
66 }
67 StoreBits(bits_to_store,src.uGetBits(bits_to_store));
68 }
69 void StoreBitArray(const uint8_t *array,size_t nBits);
70 void StoreString(const char *str);
71 void StoreString(const QByteArray &str);

Callers 2

serializetoMethod · 0.80
serializefromMethod · 0.80

Calls 2

GetReadableBitsMethod · 0.80
uGetBitsMethod · 0.80

Tested by

no test coverage detected