Java.Nio.ByteBuffer.Compact Method
Compacts this byte buffer.

Syntax

[Android.Runtime.Register("compact", "()Ljava/nio/ByteBuffer;", "GetCompactHandler")]
public abstract ByteBuffer Compact ()

Returns

Documentation for this section has not yet been entered.

Exceptions

TypeReason
Java.Nio.ReadOnlyBufferExceptionif no changes may be made to the contents of this buffer.

Remarks

Compacts this byte buffer.

The remaining bytes will be moved to the head of the buffer, starting from position zero. Then the position is set to remaining(); the limit is set to capacity; the mark is cleared.

[Android Documentation]

Requirements

Namespace: Java.Nio
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1