CharArrayReader Constructors
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
CharArrayReader(Char[]) |
Creates a CharArrayReader from the specified array of chars. |
CharArrayReader(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
CharArrayReader(Char[], Int32, Int32) |
Creates a CharArrayReader from the specified array of chars. |
CharArrayReader(Char[])
Creates a CharArrayReader from the specified array of chars.
[Android.Runtime.Register(".ctor", "([C)V", "")]
public CharArrayReader (char[]? buf);
[<Android.Runtime.Register(".ctor", "([C)V", "")>]
new Java.IO.CharArrayReader : char[] -> Java.IO.CharArrayReader
Parameters
- buf
- Char[]
Input buffer (not copied)
- Attributes
Remarks
Creates a CharArrayReader from the specified array of chars.
Java documentation for java.io.CharArrayReader.CharArrayReader(char[])
.
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
CharArrayReader(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected CharArrayReader (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.IO.CharArrayReader : nativeint * Android.Runtime.JniHandleOwnership -> Java.IO.CharArrayReader
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
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
CharArrayReader(Char[], Int32, Int32)
Creates a CharArrayReader from the specified array of chars.
[Android.Runtime.Register(".ctor", "([CII)V", "")]
public CharArrayReader (char[]? buf, int offset, int length);
[<Android.Runtime.Register(".ctor", "([CII)V", "")>]
new Java.IO.CharArrayReader : char[] * int * int -> Java.IO.CharArrayReader
Parameters
- buf
- Char[]
Input buffer (not copied)
- offset
- Int32
Offset of the first char to read
- length
- Int32
Number of chars to read
- Attributes
Exceptions
if offset
or length
, or if
offset
is greater than the size of buf
.
Remarks
Creates a CharArrayReader from the specified array of chars.
The resulting reader will start reading at the given offset
. The total number of char
values that can be read from this reader will be either length
or buf.length-offset
, whichever is smaller.
Java documentation for java.io.CharArrayReader.CharArrayReader(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.