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