Compartir a través de


ByteBuffer.PutChar Method

Definition

Overloads

PutChar(Char)

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

PutChar(Int32, Char)

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

PutChar(Char)

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

[Android.Runtime.Register("putChar", "(C)Ljava/nio/ByteBuffer;", "GetPutChar_CHandler")]
public abstract Java.Nio.ByteBuffer PutChar (char value);
[<Android.Runtime.Register("putChar", "(C)Ljava/nio/ByteBuffer;", "GetPutChar_CHandler")>]
abstract member PutChar : char -> Java.Nio.ByteBuffer

Parameters

value
Char

The char value to be written

Returns

This buffer

Attributes

Exceptions

if position is greater than limit - 2.

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

Remarks

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

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

Java documentation for java.nio.ByteBuffer.putChar(char).

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

PutChar(Int32, Char)

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

[Android.Runtime.Register("putChar", "(IC)Ljava/nio/ByteBuffer;", "GetPutChar_ICHandler")]
public abstract Java.Nio.ByteBuffer PutChar (int index, char value);
[<Android.Runtime.Register("putChar", "(IC)Ljava/nio/ByteBuffer;", "GetPutChar_ICHandler")>]
abstract member PutChar : int * char -> Java.Nio.ByteBuffer

Parameters

index
Int32

The index at which the bytes will be written

value
Char

The char 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 char value&nbsp;&nbsp;(optional operation).

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

Java documentation for java.nio.ByteBuffer.putChar(int, char).

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