# bm::bit_out< TEncoder > Class Template Reference

Byte based writer for un-aligned bit streaming. More...

`#include <encoding.h>`

## Public Member Functions

| bit_out (TEncoder &dest)
| ~bit_out ()
void | put_bit (unsigned value)
void | put_bits (unsigned value, unsigned count)
void | put_zero_bit ()
void | put_zero_bits (register unsigned count)
void | gamma (unsigned value)
void | flush ()

## Detailed Description

### template<class TEncoder>
class bm::bit_out< TEncoder >

Byte based writer for un-aligned bit streaming.

See also:
  encoder

Definition at line 141 of file encoding.h.

## Constructor & Destructor Documentation

template<class TEncoder >

bm::bit_out< TEncoder >::bit_out | ( | TEncoder & | dest | ) | `[inline]`

Definition at line 144 of file encoding.h.

template<class TEncoder >

bm::bit_out< TEncoder >::~bit_out | ( |  | ) | `[inline]`

Definition at line 148 of file encoding.h.

## Member Function Documentation

template<class TEncoder >

void bm::bit_out< TEncoder >::flush | ( |  | ) | `[inline]`

Definition at line 304 of file encoding.h.

template<class TEncoder >

void bm::bit_out< TEncoder >::gamma | ( | unsigned | value | ) | `[inline]`

Definition at line 229 of file encoding.h.

References BM_ASSERT, and bm::ilog2_LUT().

Referenced by bm::serializer< BV >::gamma_gap_array().

template<class TEncoder >

void bm::bit_out< TEncoder >::put_bit | ( | unsigned | value | ) | `[inline]`

Definition at line 154 of file encoding.h.

References BM_ASSERT.

template<class TEncoder >

void bm::bit_out< TEncoder >::put_bits | ( | unsigned | value,
|  | unsigned | count |
| ) |  |  | `[inline]`

Definition at line 162 of file encoding.h.

template<class TEncoder >

void bm::bit_out< TEncoder >::put_zero_bit | ( |  | ) | `[inline]`

Definition at line 195 of file encoding.h.

template<class TEncoder >

void bm::bit_out< TEncoder >::put_zero_bits | ( | register unsigned | count | ) | `[inline]`

Definition at line 201 of file encoding.h.

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

- encoding.h