sok / Sok.Buffer / JVMMultiplatformBuffer / <init>
JVMMultiplatformBuffer(size:
Int
)
Platform and version requirements: JVM
Allocate a new MultiplatformBuffer
size
- size of the bufferJVMMultiplatformBuffer(array:
ByteArray
)
Platform and version requirements: JVM
Create a new MultiplatformBuffer wrapping a byteArray , thus avoiding copy
array
- array wrappedJVMMultiplatformBuffer(array:
ByteBuffer
)
Platform and version requirements: JVM
Create a MultiplatformBuffer with a specific NIO ByteBuffer
NIO
- ByteBuffer