Skip to content

IOFileComponent Constructors

Overloads

Name Description
IOFileComponent(Byte[]) Base class for a component of a file, providing access to the underlying binary data.
IOFileComponent(Int32) Initialises a new instance of the IOFileComponent class with zero-filled data of the specified length.
IOFileComponent(Int32, Stream) Initialises a new instance of the IOFileComponent class by reading data from a stream.
IOFileComponent(Int32, IEnumerable<Byte>) Initialises a new instance of the IOFileComponent class from a sequence of bytes.

IOFileComponent(Byte[])

Base class for a component of a file, providing access to the underlying binary data.

protected IOFileComponent(Byte[] data);

View source

Parameters

Name Type Description
data Byte[] The raw byte data for this component.

IOFileComponent(Int32)

Initialises a new instance of the IOFileComponent class with zero-filled data of the specified length.

protected IOFileComponent(int length);

View source

Parameters

Name Type Description
length Int32 The length of the data in bytes.

IOFileComponent(Int32, Stream)

Initialises a new instance of the IOFileComponent class by reading data from a stream.

protected IOFileComponent(int length, Stream data);

View source

Parameters

Name Type Description
length Int32 The number of bytes to read.
data Stream The stream to read the data from.

IOFileComponent(Int32, IEnumerable<Byte>)

Initialises a new instance of the IOFileComponent class from a sequence of bytes.

protected IOFileComponent(int length, IEnumerable<Byte> data);

View source

Parameters

Name Type Description
length Int32 The expected length of the data in bytes.
data IEnumerable<Byte> The bytes for this component.