Block Class
Definition
Base class for a block in a file that is composed of a header, data and a trailer.
c#
public abstract class Block : IOFileComponentConstructors
| Name | Description |
|---|---|
Block(Header, Trailer, Int32) | Initializes a new instance of the Block class with zero-filled data of the specified length. |
Block(Header, Trailer, Int32, Stream) | Initializes a new instance of the Block class by reading data from a stream. |
Block(Header, Trailer, Int32, IEnumerable<Byte>) | Initializes a new instance of the Block class from a sequence of bytes. |
Block(Header, Trailer, Byte[]) | Initializes a new instance of the Block class from a byte array. |
Properties
| Name | Description |
|---|---|
Header | Gets the header for this block. |
Trailer | Gets the trailer for this block. |
Methods
| Name | Description |
|---|---|
LoadInto(Span<Byte>) | Loads the block data into the specified memory span. |
TryLoadInto(Span<Byte>) | Attempts to load the block data into the specified memory span. |