共用方式為


MappedByteBuffer.Slice Method

Definition

Overloads

Slice()

To be added

Slice(Int32, Int32)

To be added

Slice()

To be added

[Android.Runtime.Register("slice", "()Ljava/nio/ByteBuffer;", "GetSliceHandler", ApiSince=34)]
public override Java.Nio.ByteBuffer? Slice ();
[<Android.Runtime.Register("slice", "()Ljava/nio/ByteBuffer;", "GetSliceHandler", ApiSince=34)>]
override this.Slice : unit -> Java.Nio.ByteBuffer

Returns

Attributes

Remarks

To be added

Reading bytes into physical memory by invoking load() on the returned buffer, or writing bytes to the storage device by invoking force() on the returned buffer, will only act on the sub-range of this buffer that the returned buffer represents, namely [position(),limit()).

Java documentation for java.nio.MappedByteBuffer.slice().

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

Slice(Int32, Int32)

To be added

[Android.Runtime.Register("slice", "(II)Ljava/nio/MappedByteBuffer;", "GetSlice_IIHandler", ApiSince=34)]
public virtual Java.Nio.MappedByteBuffer? Slice (int index, int length);
[<Android.Runtime.Register("slice", "(II)Ljava/nio/MappedByteBuffer;", "GetSlice_IIHandler", ApiSince=34)>]
override this.Slice : int * int -> Java.Nio.MappedByteBuffer

Parameters

index
Int32
length
Int32

Returns

Attributes

Remarks

To be added

Reading bytes into physical memory by invoking load() on the returned buffer, or writing bytes to the storage device by invoking force() on the returned buffer, will only act on the sub-range of this buffer that the returned buffer represents, namely [index,index+length), where index and length are assumed to satisfy the preconditions.

Java documentation for java.nio.MappedByteBuffer.slice(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