MCPcopy Create free account
hub / github.com/LUX-Core/lux / FillBuffer

Method FillBuffer

src/cryptopp/zinflate.cpp:25–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23};
24
25inline bool LowFirstBitReader::FillBuffer(unsigned int length)
26{
27 while (m_bitsBuffered < length)
28 {
29 byte b;
30 if (!m_store.Get(b))
31 return false;
32 m_buffer |= (unsigned long)b << m_bitsBuffered;
33 m_bitsBuffered += 8;
34 }
35 CRYPTOPP_ASSERT(m_bitsBuffered <= sizeof(unsigned long)*8);
36 return true;
37}
38
39inline unsigned long LowFirstBitReader::PeekBits(unsigned int length)
40{

Callers 3

DecodeMethod · 0.80
DecodeHeaderMethod · 0.80
DecodeBodyMethod · 0.80

Calls 1

GetMethod · 0.45

Tested by

no test coverage detected