cbf_byte_offset.h

Go to the documentation of this file.
00001 
00002 #ifndef CBF_BYTE_OFFSET_H
00003 #define CBF_BYTE_OFFSET_H
00004 
00005 #ifdef __cplusplus
00006 
00007 extern "C" {
00008 
00009 #endif
00010 
00011 #include <stdio.h>
00012 
00013 #include "cbf_file.h"
00014 
00015 
00016   /* Compress an array with the byte-offset algorithm */
00017   
00018 int cbf_compress_byte_offset (void         *source, 
00019                               size_t        elsize, 
00020                               int           elsign, 
00021                               size_t        nelem, 
00022                               unsigned int  compression, 
00023                               cbf_file     *file, 
00024                               size_t       *compressedsize,
00025                               int          *storedbits);
00026                             
00027 
00028   /* Decompress an array with the byte-offset algorithm */
00029 
00030 int cbf_decompress_byte_offset (void         *destination, 
00031                                 size_t        elsize, 
00032                                 int           elsign, 
00033                                 size_t        nelem, 
00034                                 size_t       *nelem_read,
00035                                 unsigned int  compression, 
00036                                 cbf_file     *file);
00037 
00038 #ifdef __cplusplus
00039 
00040 }
00041 
00042 #endif
00043 
00044 #endif /* CBF_BYTE_OFFSET_H */