C# Class GSF.Media.RiffHeaderChunk

Represents the header chunk in a RIFF media format file.
Inheritance: RiffChunk, ISupportBinaryImage
Exibir arquivo Open project: GridProtectionAlliance/gsf

Public Methods

Method Description
Clone ( ) : RiffHeaderChunk

Returns a cloned instance of this RIFF header chunk.

GenerateBinaryImage ( byte buffer, int startIndex ) : int

Generates binary image of the object and copies it into the given buffer.

RiffHeaderChunk ( RiffChunk preRead, Stream source, string format ) : System

Reads a new RIFF header from the specified stream.

RiffHeaderChunk ( string format ) : System

Constructs a new RIFF header chunk for the specified format.

Private Methods

Method Description
ISupportBinaryImage ( byte buffer, int startIndex, int length ) : int

Method Details

Clone() public method

Returns a cloned instance of this RIFF header chunk.
public Clone ( ) : RiffHeaderChunk
return RiffHeaderChunk

GenerateBinaryImage() public method

Generates binary image of the object and copies it into the given buffer.
is null. /// or is less than 0 -or- /// and will exceed length. ///
public GenerateBinaryImage ( byte buffer, int startIndex ) : int
buffer byte Buffer used to hold generated binary image of the source object.
startIndex int 0-based starting index in the to start writing.
return int

RiffHeaderChunk() public method

Reads a new RIFF header from the specified stream.
cannot be null. must be extactly 4 characters in length.
public RiffHeaderChunk ( RiffChunk preRead, Stream source, string format ) : System
preRead RiffChunk Pre-parsed header.
source Stream Source stream to read data from.
format string Expected RIFF media format (e.g., "WAVE").
return System

RiffHeaderChunk() public method

Constructs a new RIFF header chunk for the specified format.
public RiffHeaderChunk ( string format ) : System
format string RIFF header chunk header format.
return System