C# Class FlacLibSharp.MetadataBlock

The abstract base class for all meta data blocks.
Show file Open project: AaronLenoir/flaclibsharp Class Usage Examples

Public Methods

Method Description
Create ( Stream data ) : MetadataBlock

Loads the first meta data block found on the stream (first byte is supposed to be the start of the meta data block)... the stream will be forwarded to the start of the next meta data block (or the start of the audio frames)

LoadBlockData ( byte data ) : void

When overridden in a derived class, will load the given type of metadata from the data provided.

WriteBlockData ( Stream targetStream ) : void

When overridden in a derived class, will write the data describing this metadata block to the given stream.

Protected Methods

Method Description
MetadataBlock ( ) : System

Creates an empty metadata block

Private Methods

Method Description
GetInstanceByBlockType ( MetadataBlockHeader type ) : MetadataBlock

Method Details

Create() public static method

Loads the first meta data block found on the stream (first byte is supposed to be the start of the meta data block)... the stream will be forwarded to the start of the next meta data block (or the start of the audio frames)
public static Create ( Stream data ) : MetadataBlock
data Stream
return MetadataBlock

LoadBlockData() public abstract method

When overridden in a derived class, will load the given type of metadata from the data provided.
public abstract LoadBlockData ( byte data ) : void
data byte The data where to find the metadata block in.
return void

MetadataBlock() protected method

Creates an empty metadata block
protected MetadataBlock ( ) : System
return System

WriteBlockData() public abstract method

When overridden in a derived class, will write the data describing this metadata block to the given stream.
public abstract WriteBlockData ( Stream targetStream ) : void
targetStream Stream Stream to write the data to.
return void