exip  Alpha 0.5.4
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
streamRead.h File Reference

Interface to a low-level EXI stream reader. More...

#include "errorHandle.h"
#include "procTypes.h"

Go to the source code of this file.

Functions

errorCode readNextBit (EXIStream *strm, boolean *bit_val)
 Reads the next single bit from a buffer and moves its current bit pointer. More...
 
errorCode readBits (EXIStream *strm, unsigned char n, unsigned int *bits_val)
 Read the next n bits and return the result as an integer. More...
 

Detailed Description

Date
Jul 7, 2010
Author
Rumen Kyusakov
Version
0.5
[Revision] $Id: streamRead.h 328 2013-10-30 16:00:10Z kjussakov $

Definition in file streamRead.h.

Function Documentation

errorCode readBits ( EXIStream strm,
unsigned char  n,
unsigned int *  bits_val 
)

Moves the stream current bit pointer with the number of bits read

Parameters
[in]strmEXI stream of bits
[in]nThe number of bits in the range
[out]bits_valresulting bits value
Returns
Error handling code

Definition at line 52 of file streamRead.c.

errorCode readNextBit ( EXIStream strm,
boolean bit_val 
)
Parameters
[in]strmEXI stream of bits
[out]bit_valthe value of the next bit: 0 or 1
Returns
Error handling code

Definition at line 31 of file streamRead.c.