#include <opennurbs_archive.h>
Public Member Functions | |
bool | AtEnd () const |
size_t | CurrentPosition () const |
void | EnableMemoryBuffer (int=16384) |
ON_BinaryFile (ON::archive_mode) | |
ON_BinaryFile (ON::archive_mode, FILE *fp) | |
bool | SeekFromCurrentPosition (int) |
bool | SeekFromEnd (int) |
bool | SeekFromStart (size_t) |
virtual | ~ON_BinaryFile () |
Protected Member Functions | |
bool | Flush () |
size_t | Read (size_t, void *) |
size_t | Write (size_t, const void *) |
Private Member Functions | |
ON_BinaryFile () | |
ON_BinaryFile (const ON_BinaryFile &) | |
ON_BinaryFile & | operator= (const ON_BinaryFile &) |
Private Attributes | |
FILE * | m_fp |
unsigned char * | m_memory_buffer |
size_t | m_memory_buffer_capacity |
size_t | m_memory_buffer_ptr |
size_t | m_memory_buffer_size |
Definition at line 2751 of file opennurbs_archive.h.
ON_BinaryFile::ON_BinaryFile | ( | ON::archive_mode | mode | ) |
Definition at line 13055 of file opennurbs_archive.cpp.
ON_BinaryFile::ON_BinaryFile | ( | ON::archive_mode | mode, |
FILE * | fp | ||
) |
Definition at line 13064 of file opennurbs_archive.cpp.
ON_BinaryFile::~ON_BinaryFile | ( | ) | [virtual] |
Definition at line 13073 of file opennurbs_archive.cpp.
ON_BinaryFile::ON_BinaryFile | ( | ) | [private] |
ON_BinaryFile::ON_BinaryFile | ( | const ON_BinaryFile & | ) | [private] |
bool ON_BinaryFile::AtEnd | ( | ) | const [virtual] |
Implements ON_BinaryArchive.
Definition at line 13342 of file opennurbs_archive.cpp.
size_t ON_BinaryFile::CurrentPosition | ( | ) | const [virtual] |
Implements ON_BinaryArchive.
Definition at line 13307 of file opennurbs_archive.cpp.
void ON_BinaryFile::EnableMemoryBuffer | ( | int | buffer_capacity = 16384 | ) |
Definition at line 13221 of file opennurbs_archive.cpp.
bool ON_BinaryFile::Flush | ( | ) | [protected, virtual] |
Implements ON_BinaryArchive.
Definition at line 13281 of file opennurbs_archive.cpp.
ON_BinaryFile& ON_BinaryFile::operator= | ( | const ON_BinaryFile & | ) | [private] |
size_t ON_BinaryFile::Read | ( | size_t | count, |
void * | p | ||
) | [protected, virtual] |
Implements ON_BinaryArchive.
Definition at line 13246 of file opennurbs_archive.cpp.
bool ON_BinaryFile::SeekFromCurrentPosition | ( | int | offset | ) | [virtual] |
Implements ON_BinaryArchive.
Definition at line 13370 of file opennurbs_archive.cpp.
bool ON_BinaryFile::SeekFromEnd | ( | int | offset | ) |
Definition at line 13412 of file opennurbs_archive.cpp.
bool ON_BinaryFile::SeekFromStart | ( | size_t | offset | ) | [virtual] |
Implements ON_BinaryArchive.
Definition at line 13430 of file opennurbs_archive.cpp.
size_t ON_BinaryFile::Write | ( | size_t | count, |
const void * | p | ||
) | [protected, virtual] |
Implements ON_BinaryArchive.
Definition at line 13251 of file opennurbs_archive.cpp.
FILE* ON_BinaryFile::m_fp [private] |
Definition at line 2799 of file opennurbs_archive.h.
unsigned char* ON_BinaryFile::m_memory_buffer [private] |
Definition at line 2810 of file opennurbs_archive.h.
size_t ON_BinaryFile::m_memory_buffer_capacity [private] |
Definition at line 2807 of file opennurbs_archive.h.
size_t ON_BinaryFile::m_memory_buffer_ptr [private] |
Definition at line 2809 of file opennurbs_archive.h.
size_t ON_BinaryFile::m_memory_buffer_size [private] |
Definition at line 2808 of file opennurbs_archive.h.