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

Implementing the interface to a low-level EXI stream reader. More...

#include "streamRead.h"
#include "ioUtil.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...
 

Variables

const unsigned char BIT_MASK []
 

Detailed Description

Date
Aug 18, 2010
Author
Rumen Kyusakov
Version
0.5
[Revision] $Id: streamRead.c 343 2014-11-14 17:28:18Z kjussakov $

Definition in file streamRead.c.

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.

Variable Documentation

const unsigned char BIT_MASK[]
Initial value:
= { (char) 0x00,
(char) 0x01,
(char) 0x03,
(char) 0x07,
(char) 0x0F,
(char) 0x1F,
(char) 0x3F,
(char) 0x7F,
(char) 0xFF }

Definition at line 21 of file streamRead.c.