aboutsummaryrefslogtreecommitdiff
path: root/libpsn00b/lzp/bit.h
blob: 321160a9a6e72d6cb270c2d396829f9ba7ee5f53 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef _LZP_BIT_H
#define _LZP_BIT_H

extern const unsigned char* inPtr;
extern int inBytes;
extern unsigned char* outPtr;
extern int outBytes;

extern int bit_buf;
extern int bit_count;

#ifdef __cplusplus
extern "C" {
#endif

void init_bits();
void put_bits(int n, int x);
void flush_bits();
int get_bits(int n);

#ifdef __cplusplus
}
#endif


#endif // _LZP_BIT_H