Octane v1.01.20 - The Open Compression Toolkit for C++ | http://octane.sourceforge.net/ |
#include <bitreaders.hpp>
Inheritance diagram for vector_bitreader:
Definition at line 65 of file bitreaders.hpp.
Public Member Functions | |
vector_bitreader (const std::vector< char > &_s) | |
Constructor. | |
vector_bitreader (const std::vector< char > &_s, size_t size_in_bits) | |
Constructor with size specification. | |
bool | supports_seek () const |
Check if seek functions are supported. | |
Protected Member Functions | |
char | read_next_byte () |
Defines the method of reading a single byte of input. | |
void | set_position (size_t pos) |
Defines the method of setting the position for the next read. | |
Protected Attributes | |
const std::vector< char > & | s |
size_t | index |
|
Constructor. Sets the number of bits available to the size of the vector.
Definition at line 71 of file bitreaders.hpp.
00072 : bitreader(8 * _s.size()), s(_s), index(0) { ; } |
|
Constructor with size specification.
Definition at line 76 of file bitreaders.hpp.
00077 : bitreader(size_in_bits), s(_s), index(0) { ; } |
|
Check if seek functions are supported.
Implements bitreader. Definition at line 81 of file bitreaders.hpp.
00081 { return true; } |
|
Defines the method of reading a single byte of input. Derived classes must implement this function.
Implements bitreader. Definition at line 85 of file bitreaders.hpp.
00085 { return s[index++]; }
|
|
Defines the method of setting the position for the next read. Derived classes should implement this function if possible.
Reimplemented from bitreader. Definition at line 86 of file bitreaders.hpp.
00086 { index = pos; } |