00001 /*------------------------------------------------------------------------ 00002 00003 BUFR encoding and decoding software and library 00004 Copyright (c) 2007, Institute of Broadband Communication, TU-Graz 00005 on behalf of EUMETNET OPERA, http://www.knmi.nl/opera 00006 00007 This library is free software; you can redistribute it and/or 00008 modify it under the terms of the GNU Lesser General Public 00009 License as published by the Free Software Foundation; version 2.1 00010 of the License. 00011 00012 This library is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 Lesser General Public License for more details. 00016 00017 You should have received a copy of the GNU Lesser General Public 00018 License along with this library; if not, write to the Free Software 00019 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00020 00021 ---------------------------------------------------------------------------- 00022 00023 FILE: BITIO.H 00024 IDENT: $Id: bitio.h,v 1.6 2007/12/18 14:40:58 fuxi Exp $ 00025 00026 AUTHOR: Konrad Koeck 00027 Institute of Communication and Wave Propagation, 00028 Technical University Graz, Austria 00029 00030 VERSION NUMBER:3.0 00031 00032 DATE CREATED: 18-DEC-2001 00033 00034 STATUS: DEVELOPMENT FINISHED 00035 00036 00037 FUNCTIONAL DESCRIPTION: 00038 ----------------------- 00039 Includefile for BITIO.C. More details can be found there. 00040 00041 AMENDMENT RECORD: 00042 00043 Revision 1.4 2005/04/04 14:56:09 helmutp 00044 update to version 2.3 00045 00046 Revision 1.3 2003/03/27 17:17:39 helmutp 00047 update to version 2.2 00048 00049 Revision 1.2 2003/03/06 17:12:32 helmutp 00050 update to version 2.1 00051 00052 Revision 1.1 2003/02/28 13:41:12 helmutp 00053 Initial revision 00054 00055 --------------------------------------------------------------------------- */ 00056 00064 /*===========================================================================*/ 00065 /* function prototypes */ 00066 /*===========================================================================*/ 00067 00068 #ifndef BITIO_H_INCLUDED 00069 #define BITIO_H_INCLUDED 00070 00071 int bitio_i_open (void *buf, size_t size); 00072 int bitio_i_input (int handle, unsigned long *val, int nbits); 00073 size_t bitio_o_get_size (int handle); 00074 void bitio_i_close (int handle); 00075 int bitio_o_open (); 00076 long bitio_o_append (int handle, unsigned long val, int nbits); 00077 void bitio_o_outp (int handle, unsigned long val, int nbits, long bitpos); 00078 void *bitio_o_close (int handle, size_t *nbytes); 00079 00080 #endif 00081 00082 /* end of file */ 00083
1.5.4