C# Class FlacLibSharp.MetadataBlock

The abstract base class for all meta data blocks.
Afficher le fichier Open project: AaronLenoir/flaclibsharp Class Usage Examples

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
MetadataBlock ( ) : System

Creates an empty metadata block

Private Methods

Méthode Description
GetInstanceByBlockType ( MetadataBlockHeader type ) : MetadataBlock

Method Details

Create() public static méthode

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
Résultat MetadataBlock

LoadBlockData() public abstract méthode

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.
Résultat void

MetadataBlock() protected méthode

Creates an empty metadata block
protected MetadataBlock ( ) : System
Résultat System

WriteBlockData() public abstract méthode

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.
Résultat void