|
PST File Format SDK v0.4
|
The authoritative source of free space in the file. More...
#include <disk.h>
Inheritance diagram for pstsdk::disk::amap_page< T >:
Collaboration diagram for pstsdk::disk::amap_page< T >:Additional Inherited Members | |
Public Attributes inherited from pstsdk::disk::page< T > | |
| byte | data [page_data_size] |
| space used for actual data | |
| page_trailer< T > | trailer |
| The page trailer for this page. | |
Static Public Attributes inherited from pstsdk::disk::page< T > | |
| static const size_t | page_data_size = page_size - sizeof(page_trailer<T>) |
| Amount of usable space in a page. | |
The authoritative source of free space in the file.
Each bit in an AMap page refers to bytes_per_slot bytes of the file. If that bit is set, that indicates those bytes in the file are occupied. If the bit is not set, that indicates those bytes in the file are available for allocation. Note that each AMap page "maps" itself. Since an AMap page (like all pages) is page_size bytes (512), this means the first 8 bytes of an AMap page are by definition always 0xFF.