MemoryBuffer

actual class MemoryBuffer
expect class MemoryBuffer
actual class MemoryBuffer
actual class MemoryBuffer

Constructors

Link copied to clipboard
actual constructor(handler: NativeAddress, size: ULong)
expect constructor(handler: NativeAddress, size: ULong)
actual constructor(handler: NativeAddress, size: ULong)
actual constructor(handler: NativeAddress, size: ULong)

Properties

Link copied to clipboard
Link copied to clipboard
val memorySegment: MemorySegment
Link copied to clipboard
actual val size: ULong
expect val size: ULong
actual val size: ULong
actual val size: ULong

Functions

Link copied to clipboard
actual fun readByte(offset: ULong): Byte
expect fun readByte(offset: ULong): Byte
actual fun readByte(offset: ULong): Byte
actual fun readByte(offset: ULong): Byte
Link copied to clipboard
actual fun readBytes(array: ByteArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
expect fun readBytes(array: ByteArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong = array.size.toULong())
actual fun readBytes(array: ByteArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
actual fun readBytes(array: ByteArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
Link copied to clipboard
actual fun readDouble(offset: ULong): Double
expect fun readDouble(offset: ULong): Double
actual fun readDouble(offset: ULong): Double
actual fun readDouble(offset: ULong): Double
Link copied to clipboard
actual fun readDoubles(array: DoubleArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
expect fun readDoubles(array: DoubleArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong = array.size.toULong())
actual fun readDoubles(array: DoubleArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
actual fun readDoubles(array: DoubleArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
Link copied to clipboard
actual fun readFloat(offset: ULong): Float
expect fun readFloat(offset: ULong): Float
actual fun readFloat(offset: ULong): Float
actual fun readFloat(offset: ULong): Float
Link copied to clipboard
actual fun readFloats(array: FloatArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
expect fun readFloats(array: FloatArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong = array.size.toULong())
actual fun readFloats(array: FloatArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
actual fun readFloats(array: FloatArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
Link copied to clipboard
actual fun readInt(offset: ULong): Int
expect fun readInt(offset: ULong): Int
actual fun readInt(offset: ULong): Int
actual fun readInt(offset: ULong): Int
Link copied to clipboard
actual fun readInts(array: IntArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
expect fun readInts(array: IntArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong = array.size.toULong())
actual fun readInts(array: IntArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
actual fun readInts(array: IntArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
Link copied to clipboard
actual fun readLong(offset: ULong): Long
expect fun readLong(offset: ULong): Long
actual fun readLong(offset: ULong): Long
actual fun readLong(offset: ULong): Long
Link copied to clipboard
actual fun readLongs(array: LongArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
expect fun readLongs(array: LongArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong = array.size.toULong())
actual fun readLongs(array: LongArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
actual fun readLongs(array: LongArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
Link copied to clipboard
actual fun readPointer(offset: ULong): NativeAddress
expect fun readPointer(offset: ULong): NativeAddress
actual fun readPointer(offset: ULong): NativeAddress
actual fun readPointer(offset: ULong): NativeAddress
Link copied to clipboard
actual fun readShort(offset: ULong): Short
expect fun readShort(offset: ULong): Short
actual fun readShort(offset: ULong): Short
actual fun readShort(offset: ULong): Short
Link copied to clipboard
actual fun readShorts(array: ShortArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
expect fun readShorts(array: ShortArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong = array.size.toULong())
actual fun readShorts(array: ShortArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
actual fun readShorts(array: ShortArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
Link copied to clipboard
actual fun readUByte(offset: ULong): UByte
expect fun readUByte(offset: ULong): UByte
actual fun readUByte(offset: ULong): UByte
actual fun readUByte(offset: ULong): UByte
Link copied to clipboard
actual fun readUBytes(array: UByteArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
expect fun readUBytes(array: UByteArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong = array.size.toULong())
actual fun readUBytes(array: UByteArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
actual fun readUBytes(array: UByteArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
Link copied to clipboard
actual fun readUInt(offset: ULong): UInt
expect fun readUInt(offset: ULong): UInt
actual fun readUInt(offset: ULong): UInt
actual fun readUInt(offset: ULong): UInt
Link copied to clipboard
actual fun readUInts(array: UIntArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
expect fun readUInts(array: UIntArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong = array.size.toULong())
actual fun readUInts(array: UIntArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
actual fun readUInts(array: UIntArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
Link copied to clipboard
actual fun readULong(offset: ULong): ULong
expect fun readULong(offset: ULong): ULong
actual fun readULong(offset: ULong): ULong
actual fun readULong(offset: ULong): ULong
Link copied to clipboard
actual fun readULongs(array: ULongArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
expect fun readULongs(array: ULongArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong = array.size.toULong())
actual fun readULongs(array: ULongArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
actual fun readULongs(array: ULongArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
Link copied to clipboard
actual fun readUShort(offset: ULong): UShort
expect fun readUShort(offset: ULong): UShort
actual fun readUShort(offset: ULong): UShort
actual fun readUShort(offset: ULong): UShort
Link copied to clipboard
actual fun readUShorts(array: UShortArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
expect fun readUShorts(array: UShortArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong = array.size.toULong())
actual fun readUShorts(array: UShortArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
actual fun readUShorts(array: UShortArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
Link copied to clipboard
actual fun writeByte(value: Byte, offset: ULong)
expect fun writeByte(value: Byte, offset: ULong)
actual fun writeByte(value: Byte, offset: ULong)
actual fun writeByte(value: Byte, offset: ULong)
Link copied to clipboard
actual fun writeBytes(array: ByteArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
expect fun writeBytes(array: ByteArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong = array.size.toULong())
actual fun writeBytes(array: ByteArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
actual fun writeBytes(array: ByteArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
Link copied to clipboard
actual fun writeDouble(value: Double, offset: ULong)
expect fun writeDouble(value: Double, offset: ULong)
actual fun writeDouble(value: Double, offset: ULong)
actual fun writeDouble(value: Double, offset: ULong)
Link copied to clipboard
actual fun writeDoubles(array: DoubleArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
expect fun writeDoubles(array: DoubleArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong = array.size.toULong())
actual fun writeDoubles(array: DoubleArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
actual fun writeDoubles(array: DoubleArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
Link copied to clipboard
actual fun writeFloat(value: Float, offset: ULong)
expect fun writeFloat(value: Float, offset: ULong)
actual fun writeFloat(value: Float, offset: ULong)
actual fun writeFloat(value: Float, offset: ULong)
Link copied to clipboard
actual fun writeFloats(array: FloatArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
expect fun writeFloats(array: FloatArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong = array.size.toULong())
actual fun writeFloats(array: FloatArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
actual fun writeFloats(array: FloatArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
Link copied to clipboard
actual fun writeInt(value: Int, offset: ULong)
expect fun writeInt(value: Int, offset: ULong)
actual fun writeInt(value: Int, offset: ULong)
actual fun writeInt(value: Int, offset: ULong)
Link copied to clipboard
actual fun writeInts(array: IntArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
expect fun writeInts(array: IntArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong = array.size.toULong())
actual fun writeInts(array: IntArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
actual fun writeInts(array: IntArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
Link copied to clipboard
actual fun writeLong(value: Long, offset: ULong)
expect fun writeLong(value: Long, offset: ULong)
actual fun writeLong(value: Long, offset: ULong)
actual fun writeLong(value: Long, offset: ULong)
Link copied to clipboard
actual fun writeLongs(array: LongArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
expect fun writeLongs(array: LongArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong = array.size.toULong())
actual fun writeLongs(array: LongArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
actual fun writeLongs(array: LongArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
Link copied to clipboard
actual fun writePointer(value: NativeAddress, offset: ULong)
expect fun writePointer(value: NativeAddress, offset: ULong)
actual fun writePointer(value: NativeAddress, offset: ULong)
actual fun writePointer(value: NativeAddress, offset: ULong)
Link copied to clipboard
actual fun writeShort(value: Short, offset: ULong)
expect fun writeShort(value: Short, offset: ULong)
actual fun writeShort(value: Short, offset: ULong)
actual fun writeShort(value: Short, offset: ULong)
Link copied to clipboard
actual fun writeShorts(array: ShortArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
expect fun writeShorts(array: ShortArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong = array.size.toULong())
actual fun writeShorts(array: ShortArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
actual fun writeShorts(array: ShortArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
Link copied to clipboard
actual fun writeUByte(value: UByte, offset: ULong)
expect fun writeUByte(value: UByte, offset: ULong)
actual fun writeUByte(value: UByte, offset: ULong)
actual fun writeUByte(value: UByte, offset: ULong)
Link copied to clipboard
actual fun writeUBytes(array: UByteArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
expect fun writeUBytes(array: UByteArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong = array.size.toULong())
actual fun writeUBytes(array: UByteArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
actual fun writeUBytes(array: UByteArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
Link copied to clipboard
actual fun writeUInt(value: UInt, offset: ULong)
expect fun writeUInt(value: UInt, offset: ULong)
actual fun writeUInt(value: UInt, offset: ULong)
actual fun writeUInt(value: UInt, offset: ULong)
Link copied to clipboard
actual fun writeUInts(array: UIntArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
expect fun writeUInts(array: UIntArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong = array.size.toULong())
actual fun writeUInts(array: UIntArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
actual fun writeUInts(array: UIntArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
Link copied to clipboard
actual fun writeULong(value: ULong, offset: ULong)
expect fun writeULong(value: ULong, offset: ULong)
actual fun writeULong(value: ULong, offset: ULong)
actual fun writeULong(value: ULong, offset: ULong)
Link copied to clipboard
actual fun writeULongs(array: ULongArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
expect fun writeULongs(array: ULongArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong = array.size.toULong())
actual fun writeULongs(array: ULongArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
actual fun writeULongs(array: ULongArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
Link copied to clipboard
actual fun writeUShort(value: UShort, offset: ULong)
expect fun writeUShort(value: UShort, offset: ULong)
actual fun writeUShort(value: UShort, offset: ULong)
actual fun writeUShort(value: UShort, offset: ULong)
Link copied to clipboard
actual fun writeUShorts(array: UShortArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
expect fun writeUShorts(array: UShortArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong = array.size.toULong())
actual fun writeUShorts(array: UShortArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)
actual fun writeUShorts(array: UShortArray, arrayIndex: ULong, bufferOffset: ULong, size: ULong)