Voxia OS v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
bits.c File Reference
#include <libk/bits.h>

Go to the source code of this file.

Functions

uint8_t read_byte (bitstream_t *bs)
 
uint32_t read_bits (bitstream_t *bs, int n)
 
uint8_t read_bit (bitstream_t *bs)
 

Function Documentation

◆ read_bit()

uint8_t read_bit ( bitstream_t * bs)

Definition at line 41 of file bits.c.

References bitstream_t::bit_pos, and bitstream_t::data.

◆ read_bits()

uint32_t read_bits ( bitstream_t * bs,
int n )

Definition at line 26 of file bits.c.

References bitstream_t::bit_pos, read_byte(), and bitstream_t::size.

◆ read_byte()

uint8_t read_byte ( bitstream_t * bs)

Definition at line 3 of file bits.c.

References bitstream_t::bit_pos, bitstream_t::data, and bitstream_t::size.

Referenced by read_bits().