Share via


ByteBuffer.PutLong Method

Definition

Overloads

PutLong(Int64)

Relative put method for writing a long value  (optional operation).

PutLong(Int32, Int64)

Absolute put method for writing a long value  (optional operation).

PutLong(Int64)

Relative put method for writing a long value  (optional operation).

[Android.Runtime.Register("putLong", "(J)Ljava/nio/ByteBuffer;", "GetPutLong_JHandler")]
public abstract Java.Nio.ByteBuffer PutLong (long value);
[<Android.Runtime.Register("putLong", "(J)Ljava/nio/ByteBuffer;", "GetPutLong_JHandler")>]
abstract member PutLong : int64 -> Java.Nio.ByteBuffer

Parameters

value
Int64

The long value to be written

Returns

This buffer

Attributes

Exceptions

if position is greater than limit - 8.

if no changes may be made to the contents of this buffer.

Remarks

Relative put method for writing a long value&nbsp;&nbsp;(optional operation).

Writes eight bytes containing the given long value, in the current byte order, into this buffer at the current position, and then increments the position by eight.

Java documentation for java.nio.ByteBuffer.putLong(long).

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

PutLong(Int32, Int64)

Absolute put method for writing a long value&nbsp;&nbsp;(optional operation).

[Android.Runtime.Register("putLong", "(IJ)Ljava/nio/ByteBuffer;", "GetPutLong_IJHandler")]
public abstract Java.Nio.ByteBuffer PutLong (int index, long value);
[<Android.Runtime.Register("putLong", "(IJ)Ljava/nio/ByteBuffer;", "GetPutLong_IJHandler")>]
abstract member PutLong : int * int64 -> Java.Nio.ByteBuffer

Parameters

index
Int32

The index at which the bytes will be written

value
Int64

The long value to be written

Returns

This buffer

Attributes

Exceptions

if index is invalid.

if no changes may be made to the contents of this buffer.

Remarks

Absolute put method for writing a long value&nbsp;&nbsp;(optional operation).

Writes eight bytes containing the given long value, in the current byte order, into this buffer at the given index.

Java documentation for java.nio.ByteBuffer.putLong(int, long).

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