Skip to content

Block<THeader, TTrailer> Class ​

Definition ​

Base class for a block with strongly typed header and trailer.

c#
public abstract class Block<THeader, TTrailer> : Block
   where THeader : Header
   where TTrailer : Trailer

View source

Type Parameters ​

NameDescription
THeaderThe type of header for this block.
TTrailerThe type of trailer for this block.

Constructors ​

NameDescription
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 ​

NameDescription
HeaderGets the strongly typed header for this block.
TrailerGets the strongly typed trailer for this block.