Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
PutFloat(Single) |
Relative put method for writing a float value (optional operation). |
PutFloat(Int32, Single) |
Absolute put method for writing a float value (optional operation). |
Relative put method for writing a float value (optional operation).
[Android.Runtime.Register("putFloat", "(F)Ljava/nio/ByteBuffer;", "GetPutFloat_FHandler")]
public abstract Java.Nio.ByteBuffer PutFloat(float value);
[<Android.Runtime.Register("putFloat", "(F)Ljava/nio/ByteBuffer;", "GetPutFloat_FHandler")>]
abstract member PutFloat : single -> Java.Nio.ByteBuffer
The float value to be written
This buffer
if position is greater than limit - 4
.
if no changes may be made to the contents of this buffer.
Relative put method for writing a float value (optional operation).
Writes four bytes containing the given float value, in the current byte order, into this buffer at the current position, and then increments the position by four.
Java documentation for java.nio.ByteBuffer.putFloat(float)
.
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.
Absolute put method for writing a float value (optional operation).
[Android.Runtime.Register("putFloat", "(IF)Ljava/nio/ByteBuffer;", "GetPutFloat_IFHandler")]
public abstract Java.Nio.ByteBuffer PutFloat(int index, float value);
[<Android.Runtime.Register("putFloat", "(IF)Ljava/nio/ByteBuffer;", "GetPutFloat_IFHandler")>]
abstract member PutFloat : int * single -> Java.Nio.ByteBuffer
The index at which the bytes will be written
The float value to be written
This buffer
if index
is invalid.
if no changes may be made to the contents of this buffer.
Absolute put method for writing a float value (optional operation).
Writes four bytes containing the given float value, in the current byte order, into this buffer at the given index.
Java documentation for java.nio.ByteBuffer.putFloat(int, float)
.
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.
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in