Must have enough bits available with ensureBits */
| 578 | |
| 579 | /* Must have enough bits available with ensureBits */ |
| 580 | static unsigned readBits(LodePNGBitReader* reader, size_t nbits) { |
| 581 | unsigned result = peekBits(reader, nbits); |
| 582 | advanceBits(reader, nbits); |
| 583 | return result; |
| 584 | } |
| 585 | |
| 586 | /* Public for testing only. steps and result must have numsteps values. */ |
| 587 | unsigned lode_png_test_bitreader(const unsigned char* data, size_t size, |
no test coverage detected