SokDoc

sok / Sok.Buffer / wrapMultiplatformBuffer

wrapMultiplatformBuffer

expect fun wrapMultiplatformBuffer(array: ByteArray): MultiplatformBuffer (source)

Wrap the array with a MultiplatformBuffer. The data will not be copied and the array will be linked to the MultiplatformBuffer class

Parameters

array - array to wrap

Return buffer

fun wrapMultiplatformBuffer(array: ByteBuffer): <ERROR CLASS> (source)

Platform and version requirements: JVM

Make a MultiplatformBuffer that use a given ByteBuffer.

Parameters

array - array to wrap

Return buffer