Trailer Constructors
Overloads
Trailer(Int32)
Initialises a new instance of the Trailer class with zero-filled data of the specified length.
protected Trailer(int length);
View source
Parameters
| Name |
Type |
Description |
| length |
Int32 |
The length of the trailer in bytes. |
Trailer(Int32, Stream)
Initialises a new instance of the Trailer class by reading data from a stream.
protected Trailer(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 trailer data from. |
Trailer(Int32, IEnumerable<Byte>)
Initialises a new instance of the Trailer class from a sequence of bytes.
protected Trailer(int length, IEnumerable<Byte> data);
View source
Parameters
| Name |
Type |
Description |
| length |
Int32 |
The expected length of the trailer in bytes. |
| data |
IEnumerable<Byte> |
The bytes for this trailer. |
Trailer(Byte[])
Initialises a new instance of the Trailer class from a byte array.
protected Trailer(Byte[] data);
View source
Parameters
| Name |
Type |
Description |
| data |
Byte[] |
The raw byte data for this trailer. |