exip
Alpha 0.5.4
|
Implements common utilities for StreamIO module. More...
#include "ioUtil.h"
Go to the source code of this file.
Functions | |
void | moveBitPointer (EXIStream *strm, unsigned int bitPositions) |
Moves the BitPointer with certain positions. More... | |
unsigned char | getBitsNumber (uint64_t val) |
Determine the number of bits needed to encode an unsigned integer value ⌈ log 2 m ⌉ from the spec is equal to getBitsNumber(m - 1) More... | |
unsigned int | log2INT (uint64_t val) |
Log2 function. More... | |
errorCode | readEXIChunkForParsing (EXIStream *strm, unsigned int numBytesToBeRead) |
Reads an EXI stream chunk using buffer.ioStrm.readWriteToStream if available. More... | |
errorCode | writeEncodedEXIChunk (EXIStream *strm) |
Flushes the EXI buffer using buffer.ioStrm.readWriteToStream if available. More... | |
Definition in file ioUtil.c.
unsigned char getBitsNumber | ( | uint64_t | val) |
unsigned int log2INT | ( | uint64_t | val) |
Used to determine the number of bits needed to encode a unsigned integer value The code taken from: http://www-graphics.stanford.edu/~seander/bithacks.html#IntegerLog
[in] | val | uint32_t value |
void moveBitPointer | ( | EXIStream * | strm, |
unsigned int | bitPositions | ||
) |