#include <opennurbs_compress.h>
◆ ON_CompressedBuffer() [1/2]
ON_CompressedBuffer::ON_CompressedBuffer |
( |
| ) |
|
◆ ~ON_CompressedBuffer()
ON_CompressedBuffer::~ON_CompressedBuffer |
( |
| ) |
|
◆ ON_CompressedBuffer() [2/2]
◆ Compress()
bool ON_CompressedBuffer::Compress |
( |
size_t |
sizeof__inbuffer, |
|
|
const void * |
inbuffer, |
|
|
int |
sizeof_element |
|
) |
| |
Description: Compress inbuffer. Parameters: sizeof__inbuffer - [in] Number of bytes in inbuffer. inbuffer - [in] Uncompressed information. sizeof_element - [out] This parameter only matters if the buffer will be compressed, and decompressed on CPUs with different endianness. If this is the case, then the types in the buffer need to have the same size (2,4, or 8). Returns: True if inbuffer is successfully compressed.
- Parameters
-
sizeof__inbuffer | sizeof uncompressed input data |
inbuffer | uncompressed input data |
◆ CompressionEnd()
bool ON_CompressedBuffer::CompressionEnd |
( |
struct ON_CompressedBufferHelper * |
| ) |
const |
◆ CompressionInit()
bool ON_CompressedBuffer::CompressionInit |
( |
struct ON_CompressedBufferHelper * |
| ) |
const |
◆ DeflateHelper()
size_t ON_CompressedBuffer::DeflateHelper |
( |
struct ON_CompressedBufferHelper * |
, |
|
|
size_t |
sizeof___inbuffer, |
|
|
const void * |
in___buffer |
|
) |
| |
- Parameters
-
sizeof___inbuffer | sizeof uncompressed input data ( > 0 ) |
in___buffer | uncompressed input data ( != nullptr ) |
◆ Destroy()
void ON_CompressedBuffer::Destroy |
( |
| ) |
|
Description: Destroy the current information in the ON_CompressedBuffer so the class can be reused.
◆ InflateHelper()
bool ON_CompressedBuffer::InflateHelper |
( |
struct ON_CompressedBufferHelper * |
, |
|
|
size_t |
sizeof___outbuffer, |
|
|
void * |
out___buffer |
|
) |
| const |
- Parameters
-
sizeof___outbuffer | sizeof uncompressed data |
out___buffer | buffer for uncompressed data |
◆ operator=()
◆ Read()
◆ SizeOfUncompressedBuffer()
size_t ON_CompressedBuffer::SizeOfUncompressedBuffer |
( |
| ) |
const |
Returns: Number of bytes in the uncompressed information.
◆ Uncompress()
bool ON_CompressedBuffer::Uncompress |
( |
void * |
outbuffer, |
|
|
int * |
bFailedCRC |
|
) |
| const |
Description: Uncompress the contents of this ON_CompressedBuffer. Parameters: outbuffer - [in/out] This buffer must have at least SizeOfUncompressedBuffer() bytes. If the function returns true, then the uncopressed information is stored in this buffer. bFailedCRC - [out] If not null, then this boolean is set to true if the CRC of the uncompressed information has changed. Returns: True if uncompressed information is returned in outbuffer.
- Parameters
-
outbuffer | read and uncompress uncompressed output data returned here |
◆ Write()
◆ WriteChar()
bool ON_CompressedBuffer::WriteChar |
( |
size_t |
count, |
|
|
const void * |
buffer |
|
) |
| |
◆ m_buffer_compressed
void* ON_CompressedBuffer::m_buffer_compressed |
◆ m_buffer_compressed_capacity
size_t ON_CompressedBuffer::m_buffer_compressed_capacity |
◆ m_crc_compressed
◆ m_crc_uncompressed
ON__UINT32 ON_CompressedBuffer::m_crc_uncompressed |
◆ m_method
int ON_CompressedBuffer::m_method |
0 = copied, 1 = compressed
◆ m_sizeof_compressed
size_t ON_CompressedBuffer::m_sizeof_compressed |
◆ m_sizeof_element
int ON_CompressedBuffer::m_sizeof_element |
◆ m_sizeof_uncompressed
size_t ON_CompressedBuffer::m_sizeof_uncompressed |