Public Member Functions | Private Member Functions | Private Attributes | List of all members
rosbag::LZ4Stream Class Reference

#include <stream.h>

Inheritance diagram for rosbag::LZ4Stream:
Inheritance graph
[legend]

Public Member Functions

void decompress (uint8_t *dest, unsigned int dest_len, uint8_t *source, unsigned int source_len)
 
CompressionType getCompressionType () const
 
 LZ4Stream (ChunkedFile *file)
 
void read (void *ptr, size_t size)
 
void startRead ()
 
void startWrite ()
 
void stopRead ()
 
void stopWrite ()
 
void write (void *ptr, size_t size)
 
 ~LZ4Stream ()
 
- Public Member Functions inherited from rosbag::Stream
 Stream (ChunkedFile *file)
 
virtual ~Stream ()
 

Private Member Functions

 LZ4Stream (const LZ4Stream &)
 
LZ4Stream operator= (const LZ4Stream &)
 
void writeStream (int action)
 

Private Attributes

int block_size_id_
 
char * buff_
 
int buff_size_
 
roslz4_stream lz4s_
 

Additional Inherited Members

- Protected Member Functions inherited from rosbag::Stream
void advanceOffset (uint64_t nbytes)
 
void clearUnused ()
 
uint64_t getCompressedIn ()
 
FILE * getFilePointer ()
 
char * getUnused ()
 
int getUnusedLength ()
 
void setCompressedIn (uint64_t nbytes)
 
void setUnused (char *unused)
 
void setUnusedLength (int nUnused)
 
- Protected Attributes inherited from rosbag::Stream
ChunkedFilefile_
 

Detailed Description

Definition at line 167 of file stream.h.

Constructor & Destructor Documentation

◆ LZ4Stream() [1/2]

rosbag::LZ4Stream::LZ4Stream ( ChunkedFile file)

Definition at line 45 of file lz4_stream.cpp.

◆ ~LZ4Stream()

rosbag::LZ4Stream::~LZ4Stream ( )

Definition at line 52 of file lz4_stream.cpp.

◆ LZ4Stream() [2/2]

rosbag::LZ4Stream::LZ4Stream ( const LZ4Stream )
private

Member Function Documentation

◆ decompress()

void rosbag::LZ4Stream::decompress ( uint8_t *  dest,
unsigned int  dest_len,
uint8_t *  source,
unsigned int  source_len 
)
virtual

Implements rosbag::Stream.

Definition at line 212 of file lz4_stream.cpp.

◆ getCompressionType()

CompressionType rosbag::LZ4Stream::getCompressionType ( ) const
virtual

Implements rosbag::Stream.

Definition at line 56 of file lz4_stream.cpp.

◆ operator=()

LZ4Stream rosbag::LZ4Stream::operator= ( const LZ4Stream )
private

◆ read()

void rosbag::LZ4Stream::read ( void *  ptr,
size_t  size 
)
virtual

Implements rosbag::Stream.

Definition at line 156 of file lz4_stream.cpp.

◆ startRead()

void rosbag::LZ4Stream::startRead ( )
virtual

Reimplemented from rosbag::Stream.

Definition at line 133 of file lz4_stream.cpp.

◆ startWrite()

void rosbag::LZ4Stream::startWrite ( )
virtual

Reimplemented from rosbag::Stream.

Definition at line 60 of file lz4_stream.cpp.

◆ stopRead()

void rosbag::LZ4Stream::stopRead ( )
virtual

Reimplemented from rosbag::Stream.

Definition at line 204 of file lz4_stream.cpp.

◆ stopWrite()

void rosbag::LZ4Stream::stopWrite ( )
virtual

Reimplemented from rosbag::Stream.

Definition at line 123 of file lz4_stream.cpp.

◆ write()

void rosbag::LZ4Stream::write ( void *  ptr,
size_t  size 
)
virtual

Implements rosbag::Stream.

Definition at line 78 of file lz4_stream.cpp.

◆ writeStream()

void rosbag::LZ4Stream::writeStream ( int  action)
private

Definition at line 90 of file lz4_stream.cpp.

Member Data Documentation

◆ block_size_id_

int rosbag::LZ4Stream::block_size_id_
private

Definition at line 192 of file stream.h.

◆ buff_

char* rosbag::LZ4Stream::buff_
private

Definition at line 190 of file stream.h.

◆ buff_size_

int rosbag::LZ4Stream::buff_size_
private

Definition at line 191 of file stream.h.

◆ lz4s_

roslz4_stream rosbag::LZ4Stream::lz4s_
private

Definition at line 193 of file stream.h.


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


rosbag_storage
Author(s): Dirk Thomas
autogenerated on Mon Feb 28 2022 23:33:55