SectorMarker
Overview
SectorMarker is an IntEnum whose four members correspond to the reserved sentinel values defined in the Compound File Binary (CFB) specification for FAT and DIFAT sector chains. When iterating CFBReader.fat, each 32-bit entry is either a next-sector index or one of these marker values. Comparing against SectorMarker members rather than raw hex literals makes chain-walking code more readable and self-documenting.
from aspose.email_foss.cfb import CFBReader, SectorMarker
with CFBReader.from_file("archive.cfb") as reader:
for i, entry in enumerate(reader.fat):
if entry == int(SectorMarker.ENDOFCHAIN):
print(f"FAT[{i}] = ENDOFCHAIN")Values
| Value | Integer | Description |
|---|---|---|
DIFSECT | 0xFFFFFFFC | Marks a sector that belongs to the DIFAT chain rather than holding file data. |
FATSECT | 0xFFFFFFFD | Marks a sector that belongs to the FAT itself. |
ENDOFCHAIN | 0xFFFFFFFE | Marks the last sector in a chain; no further sectors follow. |
FREESECT | 0xFFFFFFFF | Marks an unallocated (free) sector available for future use. |