of
fun Memory.Companion.of(buffer: ArrayBuffer, offset: Int = 0, length: Int = buffer.byteLength - offset): Memory
Content copied to clipboard
Create Memory view for the specified buffer range starting at offset and the specified bytes length.
Create Memory view for the specified view.
fun Memory.Companion.of(view: ArrayBufferView, offset: Int = 0, length: Int = view.byteLength): Memory
Content copied to clipboard
Create Memory view for the specified view range starting at offset and the specified bytes length.
Create Memory view for the specified buffer range starting at ByteBuffer.position and ending at ByteBuffer.limit. Changing the original buffer's position/limit will not affect previously created Memory instances.
inline fun Memory.Companion.of(pointer: <ERROR CLASS><out <ERROR CLASS>>, size: <ERROR CLASS>): Memory
Content copied to clipboard
inline fun Memory.Companion.of(pointer: <ERROR CLASS><out <ERROR CLASS>>, size: Int): Memory
Content copied to clipboard
inline fun Memory.Companion.of(pointer: <ERROR CLASS><out <ERROR CLASS>>, size: Long): Memory
Content copied to clipboard
Create an instance of Memory view for memory region starting at the specified pointer and having the specified size in bytes.