Overloads
Initialises a new instance of the Header class with zero-filled data of the specified length.
protected Header(int length);
View source
| Name |
Type |
Description |
| length |
Int32 |
The length of the header in bytes. |
Initialises a new instance of the Header class by reading data from a stream.
protected Header(int length, Stream data);
View source
| Name |
Type |
Description |
| length |
Int32 |
The number of bytes to read. |
| data |
Stream |
The stream to read the header data from. |
Initialises a new instance of the Header class from a sequence of bytes.
protected Header(int length, IEnumerable<Byte> data);
View source
| Name |
Type |
Description |
| length |
Int32 |
The expected length of the header in bytes. |
| data |
IEnumerable<Byte> |
The bytes for this header. |
Initialises a new instance of the Header class from a byte array.
protected Header(Byte[] data);
View source
| Name |
Type |
Description |
| data |
Byte[] |
The raw byte data for this header. |