Table of Contents

CompoundFileError Enum

Definition

Namespace
Bodu.IO.Compound
Assembly
Bodu.IO.Compound.dll
Package
Bodu.IO.Compound 1.0.0
Source
CompoundFileError.cs

Categorizes the structural failure that caused a CompoundFileFormatException.

public enum CompoundFileError
Extension Methods

Fields

Unknown = 0

The failure does not fall into a more specific category.

InvalidSignature = 1

The data does not begin with the compound-file signature.

InvalidByteOrder = 2

The header byte-order marker is not the expected little-endian value.

InvalidSectorSize = 3

The header declares an unsupported sector or mini-sector size.

InvalidHeader = 4

The header is otherwise malformed or declares an unsupported layout.

TruncatedFile = 5

The data is shorter than the structure it declares.

InvalidDifat = 6

The double-indirect file-allocation table (DIFAT) is malformed.

SectorOutOfRange = 7

A sector chain references a sector outside the file.

FatCycle = 8

A regular file-allocation table (FAT) chain forms a cycle.

InvalidMiniFat = 9

A mini-FAT chain is malformed or references an out-of-range mini sector.

StreamChainTooShort = 10

A materialized sector chain is shorter than the declared stream size.

InvalidDirectory = 11

The directory stream is malformed.

DirectoryCycle = 12

The directory tree contains a cyclic or duplicated entry link.

InvalidRootStorage = 13

The root storage entry is missing or has the wrong type.

InvalidPropertySet = 14

A stream is not a well-formed OLE property set.

Remarks

The category provides a stable, message-independent way to reason about why a compound file was rejected, which is especially useful when validating a reader against a corpus of deliberately malformed files.

Applies to

ProductVersions
.NET8, 10