#include <imagelib.h>
Public Member Functions | |
ScopedArchiveBuffer (ArchiveFile &file) | |
~ScopedArchiveBuffer () | |
Data Fields | |
std::size_t | length |
InputStream::byte_type * | buffer |
Private Member Functions | |
InputStream::byte_type * | ArchiveFile_loadBuffer (ArchiveFile &file, std::size_t &length) |
void | ArchiveFile_freeBuffer (InputStream::byte_type *buffer) |
Self-destructing archive buffer at the end of its scope
Definition at line 74 of file imagelib.h.
ScopedArchiveBuffer::ScopedArchiveBuffer | ( | ArchiveFile & | file | ) | [inline] |
Definition at line 93 of file imagelib.h.
References ArchiveFile_loadBuffer(), buffer, and length.
ScopedArchiveBuffer::~ScopedArchiveBuffer | ( | ) | [inline] |
Definition at line 97 of file imagelib.h.
References ArchiveFile_freeBuffer(), and buffer.
void ScopedArchiveBuffer::ArchiveFile_freeBuffer | ( | InputStream::byte_type * | buffer | ) | [inline, private] |
Definition at line 85 of file imagelib.h.
Referenced by ~ScopedArchiveBuffer().
InputStream::byte_type* ScopedArchiveBuffer::ArchiveFile_loadBuffer | ( | ArchiveFile & | file, | |
std::size_t & | length | |||
) | [inline, private] |
Definition at line 77 of file imagelib.h.
References buffer, ArchiveFile::getInputStream(), and ArchiveFile::size().
Referenced by ScopedArchiveBuffer().
InputStream::byte_type* ScopedArchiveBuffer::buffer |
Definition at line 91 of file imagelib.h.
Referenced by ArchiveFile_loadBuffer(), sound::OggFileStream::OggFileStream(), ScopedArchiveBuffer(), and ~ScopedArchiveBuffer().
std::size_t ScopedArchiveBuffer::length |
Definition at line 90 of file imagelib.h.
Referenced by ScopedArchiveBuffer().