Megosztás a következőn keresztül:


ByteBuffer.GetInt(Int32) Method

Definition

Absolute get method for reading an int value.

[Android.Runtime.Register("getInt", "(I)I", "GetGetInt_IHandler")]
public abstract int GetInt (int index);
[<Android.Runtime.Register("getInt", "(I)I", "GetGetInt_IHandler")>]
abstract member GetInt : int -> int

Parameters

index
Int32

The index from which the bytes will be read

Returns

The int value at the given index

Attributes

Exceptions

if index is invalid.

Remarks

Absolute get method for reading an int value.

Reads four bytes at the given index, composing them into a int value according to the current byte order.

Java documentation for java.nio.ByteBuffer.getInt(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