Provided by: libg2c-dev_1.6.4-3_amd64
NAME
gbits.c - Functions to pack and unpack bits to/from a packed bit string.
SYNOPSIS
#include 'grib2.h' Functions void gbit (unsigned char *in, g2int *iout, g2int iskip, g2int nbyte) Get bits - unpack bits: Extract arbitrary size values from a packed bit string, right justifying each value in the unpacked iout array. void gbits (unsigned char *in, g2int *iout, g2int iskip, g2int nbyte, g2int nskip, g2int n) Get bits - unpack bits: Extract arbitrary size values from a packed bit string, right justifying each value in the unpacked iout array. void sbit (unsigned char *out, g2int *in, g2int iskip, g2int nbyte) Store bits - put arbitrary size values into a packed bit string, taking the low order bits from each value in the unpacked array. void sbits (unsigned char *out, g2int *in, g2int iskip, g2int nbyte, g2int nskip, g2int n) Store bits - put arbitrary size values into a packed bit string, taking the low order bits from each value in the unpacked array.
Detailed Description
Functions to pack and unpack bits to/from a packed bit string. Author NOAA Programmer Definition in file gbits.c.
Function Documentation
void gbit (unsigned char * in, g2int * iout, g2int iskip, g2int nbyte) Get bits - unpack bits: Extract arbitrary size values from a packed bit string, right justifying each value in the unpacked iout array. Parameters in pointer to character array input. iout pointer to unpacked array output. iskip initial number of bits to skip. nbyte number of bits to take. Author NOAA Programmer Definition at line 20 of file gbits.c. References gbits(). Referenced by comunpack(), g2_addfield(), g2_addgrid(), g2_addlocal(), g2_getfld(), g2_gribend(), g2_info(), g2_unpack1(), g2_unpack2(), g2_unpack3(), g2_unpack4(), g2_unpack5(), g2_unpack6(), g2_unpack7(), and seekgb(). void gbits (unsigned char * in, g2int * iout, g2int iskip, g2int nbyte, g2int nskip, g2int n) Get bits - unpack bits: Extract arbitrary size values from a packed bit string, right justifying each value in the unpacked iout array. Parameters in pointer to character array input. iout pointer to unpacked array output. iskip initial number of bits to skip. nbyte number of bits to take. nskip additional number of bits to skip on each iteration. n number of iterations. Author NOAA Programmer Definition at line 57 of file gbits.c. Referenced by comunpack(), g2_unpack3(), g2_unpack4(), g2_unpack6(), gbit(), pngunpack(), simunpack(), and specunpack(). void sbit (unsigned char * out, g2int * in, g2int iskip, g2int nbyte) Store bits - put arbitrary size values into a packed bit string, taking the low order bits from each value in the unpacked array. Parameters out pointer to packed array output. Must be allocated large enough to hold output. in pointer to unpacked array input. iskip initial number of bits to skip. nbyte number of bits to pack. Author NOAA Programmer Definition at line 38 of file gbits.c. References sbits(). Referenced by compack(), g2_addfield(), g2_addgrid(), g2_addlocal(), g2_create(), g2_gribend(), misspack(), and simpack(). void sbits (unsigned char * out, g2int * in, g2int iskip, g2int nbyte, g2int nskip, g2int n) Store bits - put arbitrary size values into a packed bit string, taking the low order bits from each value in the unpacked array. Parameters out pointer to packed array output. Must be allocated large enough to hold output. in pointer to unpacked array input. iskip initial number of bits to skip. nbyte number of bits to pack. nskip additional number of bits to skip on each iteration. n number of iterations. Author NOAA Programmer Definition at line 110 of file gbits.c. Referenced by compack(), g2_addfield(), g2_addgrid(), jpcpack(), misspack(), pngpack(), sbit(), and simpack().
Author
Generated automatically by Doxygen for NCEPLIBS-g2c from the source code.