#include <cel_storage.h>
List of all members.
Detailed Description
This class creates a virtual Storage based on a existing one. The created Storage cannot be expanded by writeBytes method.
- See also:
- storages
Member Function Documentation
| static AutoPtr<PartialStorage> Celartem::PartialStorage::create |
( |
Storage * |
inStorage, |
|
|
uint64_t |
inOffset, |
|
|
uint64_t |
inSize, |
|
|
bool |
inReadOnly | |
|
) |
| | [static] |
This method creates virtual Storage.
- Parameters:
-
| inStorage | A storage. |
| inOffset | Offset in bytes. |
| inSize | The size in bytes. |
| inReadOnly | true if the new storage should be readonly; otherwise false. |
- Returns:
- Pointer to the newly created storage.
| virtual Storage* Celartem::PartialStorage::getBaseStorage |
( |
|
) |
[pure virtual] |
Get underlying storage.
NOTE: Modification to the underlying instance may causes some inconsistency issues.
- Returns:
- Underlying Storage instance.
| virtual uint64_t Celartem::PartialStorage::getOffset |
( |
|
) |
const [pure virtual] |
Get the offset on the underlying storage instance.
- Returns:
- Offset on the underlying storage instance.
| virtual void Celartem::PartialStorage::offset |
( |
size_t |
inAdditionalOffset |
) |
[pure virtual] |
Additionally offset the storage.
This method also conditions the current position according to the offset change.
- Parameters:
-
| inAdditionalOffset | Additional offset. |
The documentation for this class was generated from the following file: