SokDoc

sok / Sok.Buffer / allocDirectMultiplatformBuffer

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

Parameters

size - size of the buffer

Return allocated buffer