cbf_canonical.h

Go to the documentation of this file.
00001 
00002 #ifndef CBF_CANONICAL_H
00003 #define CBF_CANONICAL_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 */
00017 
00018 int cbf_compress_canonical (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 (from the start of the table) */
00029 
00030 int cbf_decompress_canonical (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 
00039 #ifdef __cplusplus
00040 
00041 }
00042 
00043 #endif
00044 
00045 #endif /* CBF_CANONICAL_H */