SokDoc

sok / Sok.Buffer / JVMMultiplatformBuffer / <init>

<init>

JVMMultiplatformBuffer(size: Int)

Platform and version requirements: JVM

Allocate a new MultiplatformBuffer

Parameters

size - size of the bufferJVMMultiplatformBuffer(array: ByteArray)

Platform and version requirements: JVM

Create a new MultiplatformBuffer wrapping a byteArray , thus avoiding copy

Parameters

array - array wrappedJVMMultiplatformBuffer(array: ByteBuffer)

Platform and version requirements: JVM

Create a MultiplatformBuffer with a specific NIO ByteBuffer

Parameters

NIO - ByteBuffer