OpenV2G
Functions
BitInputStream.h File Reference

Bit Input Stream. More...

#include "EXITypes.h"

Go to the source code of this file.

Functions

int readBits (bitstream_t *stream, size_t num_bits, uint32_t *b)
 Read bits. More...
 

Detailed Description

Bit Input Stream.

Read bits and bytes from an underlying input stream.

Function Documentation

◆ readBits()

int readBits ( bitstream_t stream,
size_t  num_bits,
uint32_t *  b 
)

Read bits.

Read the next num_bits bits and returns result an integer.

Parameters
streamInput Stream
num_bitsNumber of bits
bInteger value (out)
Returns
Error-Code <> 0