commonMain.buffer.MPPBuffer.kt Maven / Gradle / Ivy
package org.openrndr.utils.buffer
expect class MPPBuffer {
fun rewind()
val int: Int
val float: Float
val double: Double
val byte: Byte
fun get(): Byte
fun capacity(): Int
fun get(target: ByteArray)
fun remaining() : Int
fun put(byte: Byte)
fun putFloat(float: Float)
fun putDouble(double: Double)
fun putInt(int: Int)
companion object {
fun allocate(size: Int) : MPPBuffer
fun createFrom(fromBytes: ByteArray) : MPPBuffer
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy