| 4199 | } |
| 4200 | |
| 4201 | static 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 | |
| 4213 | stbi_inline static unsigned int stbi__zreceive(stbi__zbuf *z, int n) |
| 4214 | { |
no test coverage detected