MobileForms Toolkit Documentation

CustomDecoder.DecodeFrame Method (IntPtr, Int32, Int32)

Decodes a sequence of bytes from the current decoder and advances the position within the underlying stream by the number of bytes read.

public virtual int DecodeFrame(
IntPtr buffer,
int offset,
int count
);

Parameters

buffer
A pointer to array of bytes. When this method returns, the buffer contains the specified byte array with the values between offset and (offset + count - 1) replaced by the bytes decoded from the current decoder.
offset
The zero-based byte offset in buffer at which to begin storing the data decoded from the current decoder.
count
The maximum number of bytes to be decoded from the current decoder.

Return Value

The total number of bytes decoded into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero (0) if the end of the underlying stream has been reached.

See Also

CustomDecoder Class | Resco.Audio Namespace | CustomDecoder.DecodeFrame Overload List