Skip to content

Trailer Constructors ​

Overloads ​

NameDescription
Trailer(Int32)Initializes a new instance of the Trailer class with zero-filled data of the specified length.
Trailer(Int32, Stream)Initializes a new instance of the Trailer class by reading data from a stream.
Trailer(Int32, IEnumerable<Byte>)Initializes a new instance of the Trailer class from a sequence of bytes.
Trailer(Byte[])Initializes a new instance of the Trailer class from a byte array.

Trailer(Int32) ​

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

c#
protected Trailer(int length);

View source

Parameters ​

NameTypeDescription
lengthInt32The length of the trailer in bytes.

Trailer(Int32, Stream) ​

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

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

View source

Parameters ​

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

Trailer(Int32, IEnumerable<Byte>) ​

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

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

View source

Parameters ​

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

Trailer(Byte[]) ​

Initializes a new instance of the Trailer class from a byte array.

c#
protected Trailer(Byte[] data);

View source

Parameters ​

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