다음을 통해 공유


CharBuffer.Allocate(Int32) 메서드

정의

새 char 버퍼를 할당합니다.

[Android.Runtime.Register("allocate", "(I)Ljava/nio/CharBuffer;", "")]
public static Java.Nio.CharBuffer? Allocate (int capacity);
[<Android.Runtime.Register("allocate", "(I)Ljava/nio/CharBuffer;", "")>]
static member Allocate : int -> Java.Nio.CharBuffer

매개 변수

capacity
Int32

새 버퍼의 용량(문자)

반환

새 char 버퍼

특성

예외

가 0보다 작은 경우 capacity

설명

새 char 버퍼를 할당합니다.

새 버퍼의 위치는 0이고, 제한은 용량이고, 표시는 정의되지 않으며, 각 요소는 0으로 초기화됩니다. 이 값은 0 #array backing array#arrayOffset array offset 됩니다.

에 대한 java.nio.CharBuffer.allocate(int)Java 설명서

이 페이지의 일부는 Android 오픈 소스 프로젝트에서 만들고 공유하고 Creative Commons 2.5 특성 라이선스에 설명된 용어에 따라 사용되는 작업을 기반으로 하는 수정 사항입니다.

적용 대상