#include <stream.h>
Public Member Functions | |
BZ2Stream (ChunkedFile *file) | |
void | decompress (uint8_t *dest, unsigned int dest_len, uint8_t *source, unsigned int source_len) |
CompressionType | getCompressionType () const |
void | read (void *ptr, size_t size) |
void | startRead () |
void | startWrite () |
void | stopRead () |
void | stopWrite () |
void | write (void *ptr, size_t size) |
Private Attributes | |
int | block_size_100k_ |
compression block size (1-9; 9 default). 9 is best compression, most memory | |
int | bzerror_ |
last error from bzlib | |
BZFILE * | bzfile_ |
bzlib compressed file stream | |
int | verbosity_ |
level of debugging output (0-4; 0 default). 0 is silent, 4 is max verbose debugging output | |
int | work_factor_ |
compression behavior for worst case, highly repetitive data (0-250; 30 default) |
BZ2Stream uses libbzip2 (http://www.bzip.org) for reading/writing compressed data in the BZ2 format.
Definition at line 124 of file stream.h.
rosbag::BZ2Stream::BZ2Stream | ( | ChunkedFile * | file | ) |
Definition at line 45 of file bz2_stream.cpp.
void rosbag::BZ2Stream::decompress | ( | uint8_t * | dest, | |
unsigned int | dest_len, | |||
uint8_t * | source, | |||
unsigned int | source_len | |||
) | [virtual] |
Implements rosbag::Stream.
Definition at line 143 of file bz2_stream.cpp.
CompressionType rosbag::BZ2Stream::getCompressionType | ( | ) | const [virtual] |
Implements rosbag::Stream.
Definition at line 54 of file bz2_stream.cpp.
void rosbag::BZ2Stream::read | ( | void * | ptr, | |
size_t | size | |||
) | [virtual] |
Implements rosbag::Stream.
Definition at line 109 of file bz2_stream.cpp.
void rosbag::BZ2Stream::startRead | ( | ) | [virtual] |
Reimplemented from rosbag::Stream.
Definition at line 95 of file bz2_stream.cpp.
void rosbag::BZ2Stream::startWrite | ( | ) | [virtual] |
Reimplemented from rosbag::Stream.
Definition at line 58 of file bz2_stream.cpp.
void rosbag::BZ2Stream::stopRead | ( | ) | [virtual] |
Reimplemented from rosbag::Stream.
Definition at line 135 of file bz2_stream.cpp.
void rosbag::BZ2Stream::stopWrite | ( | ) | [virtual] |
Reimplemented from rosbag::Stream.
Definition at line 82 of file bz2_stream.cpp.
void rosbag::BZ2Stream::write | ( | void * | ptr, | |
size_t | size | |||
) | [virtual] |
Implements rosbag::Stream.
Definition at line 72 of file bz2_stream.cpp.
int rosbag::BZ2Stream::block_size_100k_ [private] |
int rosbag::BZ2Stream::bzerror_ [private] |
BZFILE* rosbag::BZ2Stream::bzfile_ [private] |
int rosbag::BZ2Stream::verbosity_ [private] |
int rosbag::BZ2Stream::work_factor_ [private] |