Skip to content

Block<THeader> Class ​

Definition ​

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

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

View source

Type Parameters ​

NameDescription
THeaderThe type of header for this block.

Constructors ​

NameDescription
Block(Header, Int32)Initializes a new instance of the Block<THeader> class with zero-filled data of the specified length.
Block(Header, Int32, Stream)Initializes a new instance of the Block<THeader> class by reading data from a stream.
Block(Header, Int32, IEnumerable<Byte>)Initializes a new instance of the Block<THeader> class from a sequence of bytes.
Block(Header, Byte[])Initializes a new instance of the Block<THeader> class from a byte array.