#include <encoding.h>
Public Member Functions | |
encoder (unsigned char *buf, unsigned size) | |
Construction. | |
void | put_8 (unsigned char c) |
Puts one character into the encoding buffer. | |
void | put_16 (bm::short_t s) |
Puts short word (16 bits) into the encoding buffer. | |
void | put_16 (const bm::short_t *s, unsigned count) |
Method puts array of short words (16 bits) into the encoding buffer. | |
void | put_32 (bm::word_t w) |
Puts 32 bits word into encoding buffer. | |
void | put_32 (const bm::word_t *w, unsigned count) |
Encodes array of 32-bit words. | |
unsigned | size () const |
Returns size of the current encoding stream. |
Class for encoding data into memory. Properly handles aligment issues with integer data types.
Definition at line 44 of file encoding.h.
|
Construction.
Definition at line 133 of file encoding.h. |
|
Method puts array of short words (16 bits) into the encoding buffer.
Definition at line 163 of file encoding.h. |
|
Puts short word (16 bits) into the encoding buffer.
Definition at line 153 of file encoding.h. References BMFORCEINLINE. |
|
Encodes array of 32-bit words.
Definition at line 207 of file encoding.h. |
|
Puts 32 bits word into encoding buffer.
Definition at line 196 of file encoding.h. References BMFORCEINLINE. |
|
Puts one character into the encoding buffer.
Definition at line 143 of file encoding.h. References BMFORCEINLINE. |
|
Returns size of the current encoding stream.
Definition at line 186 of file encoding.h. |