언어

IntBuffer.Put 메서드

정의

오버로드

속성 Description
Put(Int32, Int32[])
Put(IntBuffer)

상대 대량 배치 메서드    (선택적 작업).

Put(Int32)

Relative put 메서드    (선택적 작업).

Put(Int32[])

상대 대량 배치 메서드    (선택적 작업).

Put(Int32, Int32)

Absolute put 메서드    (선택적 작업).

Put(Int32[], Int32, Int32)

상대 대량 배치 메서드    (선택적 작업).

Put(Int32, IntBuffer, Int32, Int32)
Put(Int32, Int32[], Int32, Int32)

Put(Int32, Int32[])

[Android.Runtime.Register("put", "(I[I)Ljava/nio/IntBuffer;", "GetPut_IarrayIHandler", ApiSince=35)]
public virtual Java.Nio.IntBuffer? Put(int index, int[]? src);
[<Android.Runtime.Register("put", "(I[I)Ljava/nio/IntBuffer;", "GetPut_IarrayIHandler", ApiSince=35)>]
abstract member Put : int * int[] -> Java.Nio.IntBuffer
override this.Put : int * int[] -> Java.Nio.IntBuffer

매개 변수

index
Int32
src
Int32[]

반품

특성

적용 대상

Put(IntBuffer)

상대 대량 배치 메서드    (선택적 작업).

[Android.Runtime.Register("put", "(Ljava/nio/IntBuffer;)Ljava/nio/IntBuffer;", "GetPut_Ljava_nio_IntBuffer_Handler")]
public virtual Java.Nio.IntBuffer? Put(Java.Nio.IntBuffer? src);
[<Android.Runtime.Register("put", "(Ljava/nio/IntBuffer;)Ljava/nio/IntBuffer;", "GetPut_Ljava_nio_IntBuffer_Handler")>]
abstract member Put : Java.Nio.IntBuffer -> Java.Nio.IntBuffer
override this.Put : Java.Nio.IntBuffer -> Java.Nio.IntBuffer

매개 변수

src
IntBuffer

int를 읽을 원본 버퍼입니다. 이 버퍼가 아니어야 합니다.

반품

이 버퍼

특성

예외

이 버퍼src.remaining()의 .보다 크면 remaining()

이 버퍼인 경우 src

이 버퍼의 내용을 변경할 수 없으면 입니다.

설명

상대 대량 배치 메서드    (선택적 작업).

이 메서드는 지정된 소스 버퍼에 남아 있는 int를 이 버퍼로 전송합니다. 원본 버퍼에 이 버퍼보다 더 많은 int가 남아 있는 경우 src.remaining(), 즉  &gt;remaining()이면 ints가 전송되지 않고 throw BufferOverflowException 됩니다.

그렇지 않으면 이 메서드는 n = src.remaining() 를 복사합니다. 각 버퍼의 현재 위치에서 시작하여 지정된 버퍼에서 이 버퍼로 ints합니다. 그런 다음 두 버퍼의 위치가 n씩 증가합니다.

즉, 폼 dst.put(src) 의 이 메서드 호출은 루프와 정확히 동일한 효과를 줍니다.

while (src.hasRemaining())
                    dst.put(src.get()); 

먼저 이 버퍼에 충분한 공간이 있는지 확인하고 잠재적으로 훨씬 더 효율적이라는 점을 제외합니다.

에 대한 java.nio.IntBuffer.put(java.nio.IntBuffer)Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상

Put(Int32)

Relative put 메서드    (선택적 작업).

[Android.Runtime.Register("put", "(I)Ljava/nio/IntBuffer;", "GetPut_IHandler")]
public abstract Java.Nio.IntBuffer? Put(int i);
[<Android.Runtime.Register("put", "(I)Ljava/nio/IntBuffer;", "GetPut_IHandler")>]
abstract member Put : int -> Java.Nio.IntBuffer

매개 변수

i
Int32

쓸 int

반품

이 버퍼

특성

예외

위치가 같거나 한도보다 크면 입니다.

이 버퍼의 내용을 변경할 수 없으면 입니다.

설명

Relative put 메서드    (선택적 작업).

지정된 int를 현재 위치의 이 버퍼에 쓴 다음 위치를 증분합니다.

에 대한 java.nio.IntBuffer.put(int)Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상

Put(Int32[])

상대 대량 배치 메서드    (선택적 작업).

[Android.Runtime.Register("put", "([I)Ljava/nio/IntBuffer;", "")]
public Java.Nio.IntBuffer? Put(int[]? src);
[<Android.Runtime.Register("put", "([I)Ljava/nio/IntBuffer;", "")>]
member this.Put : int[] -> Java.Nio.IntBuffer

매개 변수

src
Int32[]

원본 배열

반품

이 버퍼

특성

예외

가 .보다 remaining()작으면 src.length

이 버퍼의 내용을 변경할 수 없으면 입니다.

설명

상대 대량 배치 메서드    (선택적 작업).

이 메서드는 지정된 원본 int 배열의 전체 콘텐츠를 이 버퍼로 전송합니다. 양식 dst.put(a) 의 이 메서드 호출은 호출과 정확히 동일한 방식으로 동작합니다.

dst.put(a, 0, a.length)

에 대한 java.nio.IntBuffer.put(int[])Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상

Put(Int32, Int32)

Absolute put 메서드    (선택적 작업).

[Android.Runtime.Register("put", "(II)Ljava/nio/IntBuffer;", "GetPut_IIHandler")]
public abstract Java.Nio.IntBuffer? Put(int index, int i);
[<Android.Runtime.Register("put", "(II)Ljava/nio/IntBuffer;", "GetPut_IIHandler")>]
abstract member Put : int * int -> Java.Nio.IntBuffer

매개 변수

index
Int32

int를 쓸 인덱스입니다.

i
Int32

쓸 int 값입니다.

반품

이 버퍼

특성

예외

인덱스가 잘못된 경우

이 버퍼의 내용을 변경할 수 없으면 입니다.

설명

Absolute put 메서드    (선택적 작업).

지정된 인덱스의 이 버퍼에 지정된 int를 씁니다.

에 대한 java.nio.IntBuffer.put(int, int)Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상

Put(Int32[], Int32, Int32)

상대 대량 배치 메서드    (선택적 작업).

[Android.Runtime.Register("put", "([III)Ljava/nio/IntBuffer;", "GetPut_arrayIIIHandler")]
public virtual Java.Nio.IntBuffer? Put(int[]? src, int offset, int length);
[<Android.Runtime.Register("put", "([III)Ljava/nio/IntBuffer;", "GetPut_arrayIIIHandler")>]
abstract member Put : int[] * int * int -> Java.Nio.IntBuffer
override this.Put : int[] * int * int -> Java.Nio.IntBuffer

매개 변수

src
Int32[]

ints를 읽을 배열입니다.

offset
Int32

읽을 첫 번째 int의 배열 내 오프셋입니다. 은 음수가 아니어야 하며 다음보다 크지 않아야 합니다. array.length

length
Int32

지정된 배열에서 읽을 int의 수입니다. 은 음수가 아니어야 하며 다음보다 크지 않아야 합니다. array.length - offset

반품

이 버퍼

특성

예외

가 .보다 remaining()작으면 intCount

둘 중 하나 srcOffset 이거나 intCount 유효하지 않은 경우

이 버퍼의 내용을 변경할 수 없으면 입니다.

설명

상대 대량 배치 메서드    (선택적 작업).

이 메서드는 지정된 소스 배열에서 이 버퍼로 ints를 전송합니다. 배열에서 복사할 ints가 이 버퍼에 남아 있는 것보다 더 많은 경우, 즉  length인 경우&gt;입니다. remaining()이면 ints가 전송되지 않고 throw BufferOverflowException 됩니다.

그렇지 않은 경우 이 메서드는 지정된 배열의 지정된 오프셋부터 이 버퍼의 현재 위치에서 시작하여 지정된 배열의 int를 이 버퍼로 복사 length 합니다. 그러면 이 버퍼의 위치가 증분됩니다 length.

즉, 폼 dst.put(src,&nbsp;off,&nbsp;len) 의 이 메서드 호출은 루프와 정확히 동일한 효과를 줍니다.

{@code
                for (int i = off; i < off + len; i++)
                    dst.put(a[i]);
            }

먼저 이 버퍼에 충분한 공간이 있는지 확인하고 잠재적으로 훨씬 더 효율적이라는 점을 제외합니다.

에 대한 java.nio.IntBuffer.put(int[], int, int)Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상

Put(Int32, IntBuffer, Int32, Int32)

[Android.Runtime.Register("put", "(ILjava/nio/IntBuffer;II)Ljava/nio/IntBuffer;", "GetPut_ILjava_nio_IntBuffer_IIHandler", ApiSince=35)]
public virtual Java.Nio.IntBuffer? Put(int index, Java.Nio.IntBuffer? src, int offset, int length);
[<Android.Runtime.Register("put", "(ILjava/nio/IntBuffer;II)Ljava/nio/IntBuffer;", "GetPut_ILjava_nio_IntBuffer_IIHandler", ApiSince=35)>]
abstract member Put : int * Java.Nio.IntBuffer * int * int -> Java.Nio.IntBuffer
override this.Put : int * Java.Nio.IntBuffer * int * int -> Java.Nio.IntBuffer

매개 변수

index
Int32
src
IntBuffer
offset
Int32
length
Int32

반품

특성

적용 대상

Put(Int32, Int32[], Int32, Int32)

[Android.Runtime.Register("put", "(I[III)Ljava/nio/IntBuffer;", "GetPut_IarrayIIIHandler", ApiSince=35)]
public virtual Java.Nio.IntBuffer? Put(int index, int[]? src, int offset, int length);
[<Android.Runtime.Register("put", "(I[III)Ljava/nio/IntBuffer;", "GetPut_IarrayIIIHandler", ApiSince=35)>]
abstract member Put : int * int[] * int * int -> Java.Nio.IntBuffer
override this.Put : int * int[] * int * int -> Java.Nio.IntBuffer

매개 변수

index
Int32
src
Int32[]
offset
Int32
length
Int32

반품

특성

적용 대상