17 #if !defined(OPENNURBS_ZLIB_INC_)
18 #define OPENNURBS_ZLIB_INC_
33 #include <pcl/pcl_config.h>
35 #if defined(HAVE_ZLIB)
37 #define z_deflate deflate
38 #define z_inflate inflate
41 #define zcalloc pcl_zcalloc
42 #define zcfree pcl_zcfree
48 #if !defined(Z_PREFIX)
53 #if !defined(MY_ZCALLOC)
63 voidpf zcalloc (voidpf,
unsigned,
unsigned);
64 void zcfree (voidpf, voidpf);
92 std::size_t sizeof__inbuffer,
139 struct ON_CompressedBufferHelper*,
140 std::size_t sizeof___inbuffer,
141 const void* in___buffer
144 struct ON_CompressedBufferHelper*,
145 std::size_t sizeof___outbuffer,
ON__UINT32 m_crc_uncompressed
ON_CompressedBuffer(const ON_CompressedBuffer &src)
std::size_t DeflateHelper(struct ON_CompressedBufferHelper *, std::size_t sizeof___inbuffer, const void *in___buffer)
std::size_t SizeOfUncompressedBuffer() const
ON_CompressedBuffer & operator=(const ON_CompressedBuffer &src)
bool CompressionInit(struct ON_CompressedBufferHelper *) const
bool Compress(std::size_t sizeof__inbuffer, const void *inbuffer, int sizeof_element)
ON__UINT32 m_crc_compressed
bool Uncompress(void *outbuffer, int *bFailedCRC) const
std::size_t m_sizeof_compressed
bool Write(ON_BinaryArchive &binary_archive) const
std::size_t m_buffer_compressed_capacity
void * m_buffer_compressed
bool CompressionEnd(struct ON_CompressedBufferHelper *) const
bool InflateHelper(struct ON_CompressedBufferHelper *, std::size_t sizeof___outbuffer, void *out___buffer) const
bool WriteChar(std::size_t count, const void *buffer)
bool Read(ON_BinaryArchive &binary_archive)
std::size_t m_sizeof_uncompressed