FastLED 3.9.15
Loading...
Searching...
No Matches

◆ CalcBitsUsed()

int32_t fl::third_party::CalcBitsUsed ( BitStreamInfo * bsi,
const unsigned char * startBuf,
int32_t startOffset )

Definition at line 170 of file bitstream.hpp.

171{
172 int32_t bitsUsed;
173
174 bitsUsed = (bsi->bytePtr - startBuf) * 8;
175 bitsUsed -= bsi->cachedBits;
176 bitsUsed -= startOffset;
177
178 return bitsUsed;
179}
fl::i32 int32_t
Definition coder.h:220
const unsigned char * bytePtr
Definition coder.h:154

References FL_NOEXCEPT.

Referenced by UnpackScaleFactors(), and UnpackSideInfo().

+ Here is the caller graph for this function: