Skip to content

Header Constructors ​

Overloads ​

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

Header(Int32) ​

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

c#
protected Header(int length);

View source

Parameters ​

NameTypeDescription
lengthInt32The length of the header in bytes.

Header(Int32, Stream) ​

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

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

View source

Parameters ​

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

Header(Int32, IEnumerable<Byte>) ​

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

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

View source

Parameters ​

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

Header(Byte[]) ​

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

c#
protected Header(Byte[] data);

View source

Parameters ​

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