IOFileComponent Constructors
Overloads
| Name | Description |
|---|---|
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);Parameters
| Name | Type | Description |
|---|---|---|
data | Byte[] | 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);Parameters
| Name | Type | Description |
|---|---|---|
length | Int32 | The 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);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>)
Initializes a new instance of the IOFileComponent class from a sequence of bytes.
c#
protected IOFileComponent(int length, IEnumerable<Byte> data);Parameters
| Name | Type | Description |
|---|---|---|
length | Int32 | The expected length of the data in bytes. |
data | IEnumerable<Byte> | The bytes for this component. |