AudioFileStream.ParseBytes Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ParseBytes(Byte[], Boolean) |
Parse and decode the array of bytes provided. |
ParseBytes(Int32, IntPtr, Boolean) |
Parse and decode the block of data provided. |
ParseBytes(Byte[], Int32, Int32, Boolean) |
Parses and decode a portion of the array of bytes provided. |
ParseBytes(Byte[], Boolean)
Parse and decode the array of bytes provided.
public AudioToolbox.AudioFileStreamStatus ParseBytes (byte[] bytes, bool discontinuity);
member this.ParseBytes : byte[] * bool -> AudioToolbox.AudioFileStreamStatus
Parameters
- bytes
- Byte[]
The buffer that contains the audio data to decode.
- discontinuity
- Boolean
True if this invocation to ParseBytes is contiguous to the previous one, false otherwise.
Returns
Parsing status.
Remarks
The OnPacketDecoded/OnProperty found methods are invoked as data is parsed. If you have not subclassed this class, you can alternatively hook up to the PacketDecoded and PropertyFound events to receive parsing notifications.
This updates the LastError property.
Applies to
ParseBytes(Int32, IntPtr, Boolean)
Parse and decode the block of data provided.
public AudioToolbox.AudioFileStreamStatus ParseBytes (int size, IntPtr data, bool discontinuity);
member this.ParseBytes : int * nativeint * bool -> AudioToolbox.AudioFileStreamStatus
Parameters
- size
- Int32
The number of bytes to parse from the provided block.
- data
-
IntPtr
nativeint
A pointer to the audio data to decode.
- discontinuity
- Boolean
True if this invocation to ParseBytes is contiguous to the previous one, false otherwise.
Returns
Parse status.
Remarks
The OnPacketDecoded/OnProperty found methods are invoked as data is parsed. If you have not subclassed this class, you can alternatively hook up to the PacketDecoded and PropertyFound events to receive parsing notifications.
This updates the LastError property.
Applies to
ParseBytes(Byte[], Int32, Int32, Boolean)
Parses and decode a portion of the array of bytes provided.
public AudioToolbox.AudioFileStreamStatus ParseBytes (byte[] bytes, int offset, int count, bool discontinuity);
member this.ParseBytes : byte[] * int * int * bool -> AudioToolbox.AudioFileStreamStatus
Parameters
- bytes
- Byte[]
Buffer containing the data.
- offset
- Int32
First byte withing the array that contains the data to decode.
- count
- Int32
Number of bytes to parse.
- discontinuity
- Boolean
True if this invocation to ParseBytes is contiguous to the previous one, false otherwise.
Returns
The status from parsing the buffer.
Remarks
The OnPacketDecoded/OnProperty found methods are invoked as data is parsed. If you have not subclassed this class, you can alternatively hook up to the PacketDecoded and PropertyFound events to receive parsing notifications.
This updates the LastError property.