sok / Sok.Buffer / allocDirectMultiplatformBuffer
fun allocDirectMultiplatformBuffer(size: Int): <ERROR CLASS> (source)
Platform and version requirements: JVM
Allocate a new MultiplatformBuffer. The buffer is not zeroed, be careful.
The create buffer will use a DirectByteBuffer instead of a HeapByteBuffer, please read the Java NIO documentation to know the difference between the two
size - size of the buffer
Return allocated buffer