File Heaps
A file heap is a type of heap that exists in a file. The file is treated as a contiguous, extendable, store, with a default cluster size of 16 bytes. The lowest offset of the file contains a header structure which defines how the heap is accessed.
type TFH_Header = packed record
Prefix : byte ;
Facility : byte ;
Version : byte ;
Reservedb : byte ;
Resolution : longint ;
Flags : longint ;
Reserved : longint ;
AT_Offset : int64 ;
Origin : int64 ;
end ;
Item |
Description |
Prefix |
A value, that with the Facility value, indicates that this is a File Heap: FF |
Facility |
Indicates a file heap: 144 (decimal). |
Version |
File heap format version: 0 |
Reservedb |
Reserved for future use. Should be 0. |
Resolution |
Resolution, in bytes, of allocation table (i.e. Cluster size). Default is 16 (decimal). |
Flags |
Reserved for future use. Should be 0. |
Reserved |
Reserved for future use. Should be 0. |
AT_Offset |
Byte offset in the file of the allocation table. |
Origin |
Byte offset in the file of the origin of the data stored in the heap. |