MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / stbi__fill_bits

Function stbi__fill_bits

Source/Utils/stb_image.h:4201–4211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4199}
4200
4201static void stbi__fill_bits(stbi__zbuf *z)
4202{
4203 do {
4204 if (z->code_buffer >= (1U << z->num_bits)) {
4205 z->zbuffer = z->zbuffer_end; /* treat this as EOF so we fail. */
4206 return;
4207 }
4208 z->code_buffer |= (unsigned int) stbi__zget8(z) << z->num_bits;
4209 z->num_bits += 8;
4210 } while (z->num_bits <= 24);
4211}
4212
4213stbi_inline static unsigned int stbi__zreceive(stbi__zbuf *z, int n)
4214{

Callers 2

stbi__zreceiveFunction · 0.85
stbi__zhuffman_decodeFunction · 0.85

Calls 1

stbi__zget8Function · 0.85

Tested by

no test coverage detected