Skip to content

IOFileComponent Constructors ​

Overloads ​

NameDescription
IOFileComponent(Byte[])Base class for a component of a file, providing access to the underlying binary data.
IOFileComponent(Int32)Initializes a new instance of the IOFileComponent class with zero-filled data of the specified length.
IOFileComponent(Int32, Stream)Initializes a new instance of the IOFileComponent class by reading data from a stream.
IOFileComponent(Int32, IEnumerable<Byte>)Initializes 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.

c#
protected IOFileComponent(Byte[] data);

View source

Parameters ​

NameTypeDescription
dataByte[]The raw byte data for this component.

IOFileComponent(Int32) ​

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

c#
protected IOFileComponent(int length);

View source

Parameters ​

NameTypeDescription
lengthInt32The length of the data in bytes.

IOFileComponent(Int32, Stream) ​

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

c#
protected IOFileComponent(int length, Stream data);

View source

Parameters ​

NameTypeDescription
lengthInt32The number of bytes to read.
dataStreamThe stream to read the data from.

IOFileComponent(Int32, IEnumerable<Byte>) ​

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

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

View source

Parameters ​

NameTypeDescription
lengthInt32The expected length of the data in bytes.
dataIEnumerable<Byte>The bytes for this component.