diff options
author | haturatu <taro@eyes4you.org> | 2024-12-10 21:28:04 +0900 |
---|---|---|
committer | haturatu <taro@eyes4you.org> | 2024-12-10 21:28:04 +0900 |
commit | fe6c36e18042603bb096d3685fe3988e32331ebf (patch) | |
tree | 359c42bed67e5eee7342b2e95810dfe501c69665 /base91.h |
Diffstat (limited to 'base91.h')
-rw-r--r-- | base91.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/base91.h b/base91.h new file mode 100644 index 0000000..7a44a60 --- /dev/null +++ b/base91.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2000-2006 Joachim Henke + * + * For conditions of distribution and use, see copyright notice in base91.c + */ + +#ifndef BASE91_H +#define BASE91_H 1 + +#include <stddef.h> + +struct basE91 { + unsigned long queue; + unsigned int nbits; + int val; +}; + +void basE91_init(struct basE91 *); + +size_t basE91_encode(struct basE91 *, const void *, size_t, void *); + +size_t basE91_encode_end(struct basE91 *, void *); + +size_t basE91_decode(struct basE91 *, const void *, size_t, void *); + +size_t basE91_decode_end(struct basE91 *, void *); + +#endif /* base91.h */ |