AssetManager.AssetInputStream.Read Method

Definition

Overloads

Name Description
Read()

Reads the next byte of data from this asset stream.

Read(Byte[])

Reads data from this stream into the specified buffer.

Read(Byte[], Int32, Int32)

Reads up to the specified number of bytes from this stream into a buffer.

Read()

Reads the next byte of data from this asset stream.

[Android.Runtime.Register("read", "()I", "")]
public override int Read();
[<Android.Runtime.Register("read", "()I", "")>]
override this.Read : unit -> int

Returns

The next byte of data, or -1 if the end of the stream has been reached.

Attributes

Remarks

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

Read(Byte[])

Reads data from this stream into the specified buffer.

[Android.Runtime.Register("read", "([B)I", "")]
public override sealed int Read(byte[]? b);
[<Android.Runtime.Register("read", "([B)I", "")>]
override this.Read : byte[] -> int

Parameters

b
Byte[]

The buffer that receives the data.

Returns

The number of bytes read, or -1 if the end of the stream has been reached.

Attributes

Remarks

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

Read(Byte[], Int32, Int32)

Reads up to the specified number of bytes from this stream into a buffer.

[Android.Runtime.Register("read", "([BII)I", "")]
public override sealed int Read(byte[]? b, int off, int len);
[<Android.Runtime.Register("read", "([BII)I", "")>]
override this.Read : byte[] * int * int -> int

Parameters

b
Byte[]

The buffer that receives the data.

off
Int32

The zero-based offset in b at which to store data.

len
Int32

The maximum number of bytes to read.

Returns

The number of bytes read, or -1 if the end of the stream has been reached.

Attributes

Remarks

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