#include <cel_storage.h>

Public Member Functions | |
| virtual SimpleArray< u8 > & | getArray ()=0 |
| virtual void | setAllocationUnit (size_t inAllocationUnitInBytes)=0 |
| virtual void | setReadOnly (bool inReadOnly)=0 |
Static Public Member Functions | |
| static AutoPtr< MemoryStorage > | create (SimpleArray< u8 > &inMemory) |
| static AutoPtr< MemoryStorage > | create () |
| static AutoPtr< MemoryStorage > | create (const void *inData, size_t inDataSize, Endian inEndian=endianHost) |
Definition at line 653 of file cel_storage.h.
| static AutoPtr<MemoryStorage> Celartem::MemoryStorage::create | ( | SimpleArray< u8 > & | inMemory | ) | [static] |
This method creates Memory Based R/W Storage.
| inMemory | A memory to access with the storage to create. |
| static AutoPtr<MemoryStorage> Celartem::MemoryStorage::create | ( | ) | [static] |
This method creates Memory Based R/W Storage. It creates an SimpleArray <u8> instance internally and you can obtain it by getArray function.
Referenced by Celartem::DjVu::MemoryData::getReadOnlyDataStream(), and Celartem::DjVu::MemoryData::getStorage().
| static AutoPtr<MemoryStorage> Celartem::MemoryStorage::create | ( | const void * | inData, | |
| size_t | inDataSize, | |||
| Endian | inEndian = endianHost | |||
| ) | [static] |
This method creates Memory Based R/W Storage. It creates an SimpleArray <u8> instance internally using the specified buffer (duplicate the buffer data) and you can obtain it by getArray function.
| inData | Pointer to the buffer of the initial data. | |
| inDataSize | The size of the buffer. | |
| inEndian | The endianness of the specified buffer. |
| virtual SimpleArray<u8>& Celartem::MemoryStorage::getArray | ( | ) | [pure virtual] |
This method returns the array which is used in this MemoryStorage instance.
| virtual void Celartem::MemoryStorage::setAllocationUnit | ( | size_t | inAllocationUnitInBytes | ) | [pure virtual] |
This method is to set the memory allocation unit. It controls the memory effeciency and the speed. A large value results in the good speed but the drawback is the bad memory effeciency.
| inAllocationUnitInBytes | The memory allocation unit in bytes. |
| virtual void Celartem::MemoryStorage::setReadOnly | ( | bool | inReadOnly | ) | [pure virtual] |
This method makes the storage read-only.
| inReadOnly | true to make the storage read-only; otherwise the storage can be writable. |