Extensions for java.nio.ByteBuffer

JVM
2.0

getUuid

Reads a Uuid value at this buffer's current position.

fun ByteBuffer.getUuid(): Uuid

Reads a Uuid value at the specified index.

fun ByteBuffer.getUuid(index: Int): Uuid
JVM
2.0

putUuid

Writes the specified uuid value at this buffer's current position.

fun ByteBuffer.putUuid(uuid: Uuid): ByteBuffer

Writes the specified uuid value at the specified index.

fun ByteBuffer.putUuid(index: Int, uuid: Uuid): ByteBuffer