# bm::decoder_base Class Reference

Base class for all decoding functionality. More...

`#include <encoding.h>`

Inheritance diagram for bm::decoder_base:
[legend]

## Public Member Functions

| decoder_base (const unsigned char *buf)
BMFORCEINLINE unsigned char | get_8 ()
| Reads character from the decoding buffer.
BMFORCEINLINE unsigned | size () const
| Returns size of the current decoding stream.
BMFORCEINLINE void | seek (int delta)
| change current position

## Protected Attributes

const unsigned char * | buf_
const unsigned char * | start_

## Detailed Description

Base class for all decoding functionality.

Definition at line 74 of file encoding.h.

## Constructor & Destructor Documentation

bm::decoder_base::decoder_base | ( | const unsigned char * | buf | ) | `[inline]`

Definition at line 77 of file encoding.h.

References buf_, and start_.

## Member Function Documentation

BMFORCEINLINE unsigned char bm::decoder_base::get_8 | ( |  | ) | `[inline]`

Reads character from the decoding buffer.

Definition at line 79 of file encoding.h.

References buf_.

Referenced by bm::operation_deserializer< BV >::deserialize(), and bm::deserialize().

BMFORCEINLINE void bm::decoder_base::seek | ( | int | delta | ) | `[inline]`

change current position

Definition at line 85 of file encoding.h.

References buf_.

Referenced by bm::decoder_little_endian::get_16(), bm::decoder::get_16(), bm::decoder_little_endian::get_32(), and bm::decoder::get_32().

BMFORCEINLINE unsigned bm::decoder_base::size | ( |  | ) | const`[inline]`

Returns size of the current decoding stream.

Definition at line 82 of file encoding.h.

References buf_, and start_.

## Field Documentation

const unsigned char* bm::decoder_base::buf_`[protected]`

Definition at line 87 of file encoding.h.

Referenced by decoder_base(), bm::decoder_little_endian::get_16(), bm::decoder::get_16(), bm::decoder_little_endian::get_32(), bm::decoder::get_32(), get_8(), seek(), and size().

const unsigned char* bm::decoder_base::start_`[protected]`

Definition at line 88 of file encoding.h.

Referenced by decoder_base(), and size().

The documentation for this class was generated from the following file:

- encoding.h