Partager via


CharArrayReader.Read(Char[], Int32, Int32) Method

Definition

Reads characters into a portion of an array.

[Android.Runtime.Register("read", "([CII)I", "GetRead_arrayCIIHandler")]
public override int Read (char[]? b, int off, int len);
[Android.Runtime.Register("read", "([CII)I", "GetRead_arrayCIIHandler")]
public override int Read (char[]? cbuf, int off, int len);
[<Android.Runtime.Register("read", "([CII)I", "GetRead_arrayCIIHandler")>]
override this.Read : char[] * int * int -> int

Parameters

bcbuf
Char[]

Destination buffer

off
Int32

To be added

len
Int32

To be added

Returns

To be added

Attributes

Exceptions

if offset buffer.length.

if this reader is closed.

Remarks

Reads characters into a portion of an array.

If len is zero, then no characters are read and 0 is returned; otherwise, there is an attempt to read at least one character. If no character is available because the stream is at its end, the value -1 is returned; otherwise, at least one character is read and stored into cbuf.

Java documentation for java.io.CharArrayReader.read(char[], 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