17 #if !defined(OPENNURBS_COMPRESS_INC_)
18 #define OPENNURBS_COMPRESS_INC_
20 typedef bool (*ON_StreamCallbackFunction)(
void* context, ON__UINT32 size,
const void* buffer );
58 ON_StreamCallbackFunction callback_function,
59 void* callback_context
103 ON__UINT64 in_buffer_size,
104 const void* in_buffer
124 void* callback_context,
125 ON__UINT32 out_buffer_size,
126 const void* out_buffer
181 ON_StreamCallbackFunction m_out_callback_function;
182 void* m_out_callback_context;
183 ON__UINT64 m_in_size;
184 ON__UINT64 m_out_size;
186 ON__UINT32 m_out_crc;
187 void* m_implementation;
235 ON_StreamCallbackFunction callback_function,
236 void* callback_context
280 ON__UINT64 in_buffer_size,
281 const void* in_buffer
301 void* callback_context,
302 ON__UINT32 out_buffer_size,
303 const void* out_buffer
358 ON_StreamCallbackFunction m_out_callback_function;
359 void* m_out_callback_context;
360 ON__UINT64 m_in_size;
361 ON__UINT64 m_out_size;
363 ON__UINT32 m_out_crc;
364 void* m_implementation;
bool SetCallback(ON_StreamCallbackFunction callback_function, void *callback_context)
ON__UINT64 OutSize() const
virtual ~ON_CompressStream()
bool In(ON__UINT64 in_buffer_size, const void *in_buffer)
ON_StreamCallbackFunction CallbackFunction() const
virtual bool Out(void *callback_context, ON__UINT32 out_buffer_size, const void *out_buffer)
void * CallbackContext() const
ON__UINT32 OutCRC() const
ON__UINT64 InSize() const
void * CallbackContext() const
virtual ~ON_UncompressStream()
ON_StreamCallbackFunction CallbackFunction() const
ON__UINT64 OutSize() const
bool In(ON__UINT64 in_buffer_size, const void *in_buffer)
bool SetCallback(ON_StreamCallbackFunction callback_function, void *callback_context)
virtual bool Out(void *callback_context, ON__UINT32 out_buffer_size, const void *out_buffer)
ON__UINT64 InSize() const
ON__UINT32 OutCRC() const