Sdílet prostřednictvím


MediaParser.IInputReader.Read(Byte[], Int32, Int32) Method

Definition

Reads up to readLength bytes of data and stores them into buffer, starting at index offset.

[Android.Runtime.Register("read", "([BII)I", "GetRead_arrayBIIHandler:Android.Media.MediaParser/IInputReaderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)]
public int Read (byte[] buffer, int offset, int readLength);
[<Android.Runtime.Register("read", "([BII)I", "GetRead_arrayBIIHandler:Android.Media.MediaParser/IInputReaderInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=30)>]
abstract member Read : byte[] * int * int -> int

Parameters

buffer
Byte[]

The buffer into which the read data should be stored.

offset
Int32

The start offset into buffer at which data should be written.

readLength
Int32

The maximum number of bytes to read.

Returns

The non-zero number of bytes read, or -1 if no data is available because the end of the input has been reached.

Attributes

Remarks

Java documentation for android.media.MediaParser.InputReader.read(byte[], int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to