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