C# Class Achamenes.ID3.Fields.BinaryField

Represents a field containing raw binary data.
Note that this field must always be the last field in a frame as there is no way to distinquish the end of a binary field. That is to say, the binary field parses all the data from the start of the field to the end of the frame.
Inheritance: Field
Datei anzeigen Open project: sahands/a-id3 Class Usage Examples

Public Methods

Method Description
BinaryField ( ) : System

Creates a new binary data field and initializes the data to null.

BinaryField ( byte data, int offset, int length ) : System

Create a new binary field that contains the give binary data.

Parse ( byte data, int offset ) : int

Parses the binary data from a given byte array.

WriteToStream ( Stream stream ) : void

Writes the binary data field to a stream.

Method Details

BinaryField() public method

Creates a new binary data field and initializes the data to null.
public BinaryField ( ) : System
return System

BinaryField() public method

Create a new binary field that contains the give binary data.
public BinaryField ( byte data, int offset, int length ) : System
data byte The data to be contained in the field.
offset int
length int
return System

Parse() public method

Parses the binary data from a given byte array.
public Parse ( byte data, int offset ) : int
data byte The byte array to parse from.
offset int The index at which to start parsing.
return int

WriteToStream() public method

Writes the binary data field to a stream.
/// The passed stream was null. /// /// There was an IO exception while trying to write the field. /// /// The stream does not support writing. /// /// The passed stream was closed before the method was called. ///
public WriteToStream ( Stream stream ) : void
stream Stream The stream to write to.
return void