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

Function bit_read

Source/Amiga/dernc.cpp:289–294  ·  view source on GitHub ↗

* Reads some bits in one go (ie the above two routines combined). */

Source from the content-addressed store, hash-verified

287 * Reads some bits in one go (ie the above two routines combined).
288 */
289static unsigned long bit_read (bit_stream *bs, unsigned long mask,
290 int n, unsigned char **p) {
291 unsigned long result = bit_peek (bs, mask);
292 bit_advance (bs, n, p);
293 return result;
294}
295
296/*
297 * Return the big-endian longword at p.

Callers 3

rnc_unpackFunction · 0.85
read_huftableFunction · 0.85
huf_readFunction · 0.85

Calls 2

bit_peekFunction · 0.85
bit_advanceFunction · 0.85

Tested by

no test coverage detected