Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
ON_Buffer Class Reference

#include <opennurbs_archive.h>

List of all members.

Public Types

enum  { seek_from_beginning_of_file = 0, seek_from_current_position = 1, seek_from_end_of_file = 2 }

Public Member Functions

bool AtEnd () const
bool ChangeSize (ON__UINT64 buffer_size)
void ClearLastError ()
bool Compact ()
bool Compress (ON_Buffer &compressed_buffer) const
ON__UINT32 CRC32 (ON__UINT32 current_remainder) const
ON__UINT64 CurrentPosition () const
void Destroy ()
void EmergencyDestroy ()
ON_Buffer_ErrorHandler ErrorHandler () const
bool IsValid (const ON_TextLog *text_log) const
ON__UINT32 LastError () const
 ON_Buffer ()
 ON_Buffer (const ON_Buffer &src)
ON_Bufferoperator= (const ON_Buffer &src)
ON__UINT64 Read (ON__UINT64 size, void *buffer)
bool ReadFromBinaryArchive (ON_BinaryArchive &)
bool Seek (ON__INT64 offset, int origin)
bool SeekFromCurrentPosition (ON__INT64 offset)
bool SeekFromEnd (ON__INT64 offset)
bool SeekFromStart (ON__INT64 offset)
void SetErrorHandler (ON_Buffer_ErrorHandler error_handler)
ON__UINT64 Size () const
bool Uncompress (ON_Buffer &uncompressed_buffer) const
ON__UINT64 Write (ON__UINT64 size, const void *buffer)
bool WriteToBinaryArchive (ON_BinaryArchive &) const
 ~ON_Buffer ()

Static Public Member Functions

static int Compare (const ON_Buffer &a, const ON_Buffer &b)

Private Member Functions

void Copy (const ON_Buffer &)
bool SetCurrentSegment (bool)

Private Attributes

ON__UINT64 m_buffer_size
ON__UINT64 m_current_position
struct ON_BUFFER_SEGMENTm_current_segment
ON_Buffer_ErrorHandler m_error_handler
struct ON_BUFFER_SEGMENTm_first_segment
ON_MEMORY_POOLm_heap
ON__UINT32 m_last_error
struct ON_BUFFER_SEGMENTm_last_segment
unsigned char m_reserved [12]

Detailed Description

Definition at line 334 of file opennurbs_archive.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
seek_from_beginning_of_file 
seek_from_current_position 
seek_from_end_of_file 

Definition at line 432 of file opennurbs_archive.h.


Constructor & Destructor Documentation

Definition at line 20 of file opennurbs_embedded_file.cpp.

Definition at line 150 of file opennurbs_embedded_file.cpp.

ON_Buffer::ON_Buffer ( const ON_Buffer src)

Definition at line 156 of file opennurbs_embedded_file.cpp.


Member Function Documentation

bool ON_Buffer::AtEnd ( ) const

Definition at line 520 of file opennurbs_embedded_file.cpp.

bool ON_Buffer::ChangeSize ( ON__UINT64  buffer_size)

Definition at line 311 of file opennurbs_embedded_file.cpp.

Definition at line 880 of file opennurbs_embedded_file.cpp.

Definition at line 257 of file opennurbs_embedded_file.cpp.

int ON_Buffer::Compare ( const ON_Buffer a,
const ON_Buffer b 
) [static]

Definition at line 63 of file opennurbs_embedded_file.cpp.

bool ON_Buffer::Compress ( ON_Buffer compressed_buffer) const

Definition at line 1061 of file opennurbs_embedded_file.cpp.

void ON_Buffer::Copy ( const ON_Buffer src) [private]

Definition at line 398 of file opennurbs_embedded_file.cpp.

ON__UINT32 ON_Buffer::CRC32 ( ON__UINT32  current_remainder) const

Definition at line 530 of file opennurbs_embedded_file.cpp.

Definition at line 615 of file opennurbs_embedded_file.cpp.

Definition at line 34 of file opennurbs_embedded_file.cpp.

Definition at line 39 of file opennurbs_embedded_file.cpp.

Definition at line 886 of file opennurbs_embedded_file.cpp.

bool ON_Buffer::IsValid ( const ON_TextLog text_log) const

Definition at line 451 of file opennurbs_embedded_file.cpp.

Definition at line 874 of file opennurbs_embedded_file.cpp.

ON_Buffer & ON_Buffer::operator= ( const ON_Buffer src)

Definition at line 170 of file opennurbs_embedded_file.cpp.

ON__UINT64 ON_Buffer::Read ( ON__UINT64  size,
void *  buffer 
)

Definition at line 793 of file opennurbs_embedded_file.cpp.

Definition at line 948 of file opennurbs_embedded_file.cpp.

bool ON_Buffer::Seek ( ON__INT64  offset,
int  origin 
)

Definition at line 181 of file opennurbs_embedded_file.cpp.

Definition at line 247 of file opennurbs_embedded_file.cpp.

Definition at line 252 of file opennurbs_embedded_file.cpp.

Definition at line 242 of file opennurbs_embedded_file.cpp.

bool ON_Buffer::SetCurrentSegment ( bool  bWritePending) [private]

Definition at line 620 of file opennurbs_embedded_file.cpp.

Definition at line 891 of file opennurbs_embedded_file.cpp.

Definition at line 525 of file opennurbs_embedded_file.cpp.

bool ON_Buffer::Uncompress ( ON_Buffer uncompressed_buffer) const

Definition at line 1158 of file opennurbs_embedded_file.cpp.

ON__UINT64 ON_Buffer::Write ( ON__UINT64  size,
const void *  buffer 
)

Definition at line 695 of file opennurbs_embedded_file.cpp.

Definition at line 896 of file opennurbs_embedded_file.cpp.


Member Data Documentation

Definition at line 625 of file opennurbs_archive.h.

Definition at line 626 of file opennurbs_archive.h.

Definition at line 630 of file opennurbs_archive.h.

Definition at line 635 of file opennurbs_archive.h.

Definition at line 628 of file opennurbs_archive.h.

Definition at line 634 of file opennurbs_archive.h.

Definition at line 637 of file opennurbs_archive.h.

Definition at line 629 of file opennurbs_archive.h.

unsigned char ON_Buffer::m_reserved[12] [private]

Definition at line 638 of file opennurbs_archive.h.


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


pcl
Author(s): Open Perception
autogenerated on Wed Aug 26 2015 15:38:51