Voxia OS
v0.0.1
Hobby Project Operating System Targeting x86-64
Loading...
Searching...
No Matches
bits.h
Go to the documentation of this file.
1
#ifndef __LIBK__BITS_H__
2
#define __LIBK__BITS_H__
3
4
#include <
type.h
>
5
6
typedef
struct
{
7
uint8_t
*
data
;
8
uint64_t
bit_pos
;
9
size_t
size
;
10
}
bitstream_t
;
11
12
uint8_t
read_byte
(
bitstream_t
* bs);
13
uint8_t
read_bit
(
bitstream_t
* bs);
14
uint32_t
read_bits
(
bitstream_t
* bs,
int
n);
15
#endif
// __LIBK__BITS_H__
read_bit
uint8_t read_bit(bitstream_t *bs)
Definition
bits.c:41
read_bits
uint32_t read_bits(bitstream_t *bs, int n)
Definition
bits.c:26
read_byte
uint8_t read_byte(bitstream_t *bs)
Definition
bits.c:3
bitstream_t
Definition
bits.h:6
bitstream_t::size
size_t size
Definition
bits.h:9
bitstream_t::data
uint8_t * data
Definition
bits.h:7
bitstream_t::bit_pos
uint64_t bit_pos
Definition
bits.h:8
type.h
uint32_t
unsigned int uint32_t
Definition
type.h:19
uint64_t
unsigned long uint64_t
Definition
type.h:25
uint8_t
unsigned char uint8_t
Definition
type.h:7
kernel
libk
bits.h
Generated on Sat May 30 2026 11:09:57 for Voxia OS by
1.13.2