#include <cstream.h>
Inheritance diagram for ht_compressed_stream:
Public Member Functions | |
void | init (ht_stream *stream, bool own_stream, UINT granularity=COMPRESSED_STREAM_DEFAULT_GRANULARITY) |
virtual void | done () |
virtual UINT | read (void *buf, UINT size) |
virtual UINT | write (const void *buf, UINT size) |
Protected Member Functions | |
bool | flush_compressed () |
bool | flush_uncompressed () |
Protected Attributes | |
byte * | buffer |
UINT | buffersize |
UINT | bufferpos |
|
Reimplemented from ht_layer_stream. Definition at line 41 of file cstream.cc. References buffer, ht_layer_stream::done(), FAM_WRITE, flush_compressed(), and ht_layer_stream::get_access_mode(). |
|
Definition at line 50 of file cstream.cc. References big_endian, buffer, bufferpos, byte, create_foreign_int(), lzo1x_1_compress(), LZO1X_1_MEM_COMPRESS, lzo_uint, smalloc(), and ht_stream::write(). |
|
Definition at line 84 of file cstream.cc. References assert, big_endian, buffer, bufferpos, buffersize, byte, create_host_int(), lzo1x_decompress(), lzo_uint, NULL, ht_stream::read(), smalloc(), and UINT. Referenced by read(). |
|
Definition at line 29 of file cstream.cc. References assert, buffer, bufferpos, buffersize, byte, FAM_READ, FAM_WRITE, ht_layer_stream::get_access_mode(), ht_stream::init(), smalloc(), and UINT. Referenced by create_object_stream(). |
|
Reimplemented from ht_layer_stream. Definition at line 118 of file cstream.cc. References buf, buffer, bufferpos, buffersize, byte, flush_uncompressed(), size, and UINT. |
|
Reimplemented from ht_layer_stream. Definition at line 138 of file cstream.cc. References buf, buffer, bufferpos, buffersize, byte, flush_compressed(), size, and UINT. |
|
Definition at line 34 of file cstream.h. Referenced by done(), flush_compressed(), flush_uncompressed(), init(), read(), and write(). |
|
Definition at line 36 of file cstream.h. Referenced by flush_compressed(), flush_uncompressed(), init(), read(), and write(). |
|
Definition at line 35 of file cstream.h. Referenced by flush_uncompressed(), init(), read(), and write(). |