다음을 통해 공유


ByteBuffer.GetFloat(Int32) Method

Definition

Absolute get method for reading a float value.

[Android.Runtime.Register("getFloat", "(I)F", "GetGetFloat_IHandler")]
public abstract float GetFloat (int index);
[<Android.Runtime.Register("getFloat", "(I)F", "GetGetFloat_IHandler")>]
abstract member GetFloat : int -> single

Parameters

index
Int32

The index from which the bytes will be read

Returns

The float value at the given index

Attributes

Exceptions

if index is invalid.

Remarks

Absolute get method for reading a float value.

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

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