]>
Commit | Line | Data |
---|---|---|
1 | /* | |
2 | * Copyright (c) 2000-2006 Joachim Henke | |
3 | * | |
4 | * For conditions of distribution and use, see copyright notice in base91.c | |
5 | */ | |
6 | ||
7 | #ifndef BASE91_H | |
8 | #define BASE91_H 1 | |
9 | ||
10 | #include <stddef.h> | |
11 | ||
12 | struct basE91 { | |
13 | unsigned long queue; | |
14 | unsigned int nbits; | |
15 | int val; | |
16 | }; | |
17 | ||
18 | void basE91_init(struct basE91 *); | |
19 | ||
20 | size_t basE91_encode(struct basE91 *, const void *, size_t, void *); | |
21 | ||
22 | size_t basE91_encode_end(struct basE91 *, void *); | |
23 | ||
24 | size_t basE91_decode(struct basE91 *, const void *, size_t, void *); | |
25 | ||
26 | size_t basE91_decode_end(struct basE91 *, void *); | |
27 | ||
28 | #endif /* base91.h */ |