Definition
Base class for a block with strongly typed header and trailer.
public abstract class Block<THeader, TTrailer> : Block
where THeader : Header
where TTrailer : Trailer
View source
Type Parameters
| Name |
Description |
THeader |
The type of header for this block. |
TTrailer |
The type of trailer for this block. |
Constructors
| 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. |
Properties
| Name |
Description |
Header |
Gets the strongly typed header for this block. |
Trailer |
Gets the strongly typed trailer for this block. |