ScopedArchiveBuffer Class Reference

#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)

Detailed Description

Self-destructing archive buffer at the end of its scope

Todo:
move somewhere else

Definition at line 74 of file imagelib.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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().


Field Documentation

InputStream::byte_type* ScopedArchiveBuffer::buffer

Definition at line 90 of file imagelib.h.

Referenced by ScopedArchiveBuffer().


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

Generated by  doxygen 1.6.2