다음을 통해 공유


CharBuffer.HasArray Property

Definition

Tells whether or not this buffer is backed by an accessible char array.

public override bool HasArray { [Android.Runtime.Register("hasArray", "()Z", "")] get; }
[<get: Android.Runtime.Register("hasArray", "()Z", "")>]
member this.HasArray : bool

Property Value

true if, and only if, this buffer is backed by an array and is not read-only

Attributes

Remarks

Tells whether or not this buffer is backed by an accessible char array.

If this method returns true then the #array() array and #arrayOffset() arrayOffset methods may safely be invoked.

Java documentation for java.nio.CharBuffer.hasArray().

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