C# Класс 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.
Наследование: Field
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

BinaryField() публичный Метод

Creates a new binary data field and initializes the data to null.
public BinaryField ( ) : System
Результат System

BinaryField() публичный Метод

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
Результат System

Parse() публичный Метод

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.
Результат int

WriteToStream() публичный Метод

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.
Результат void