All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.buffer.MPPBuffer.kt Maven / Gradle / Ivy

There is a newer version: 0.4.5-alpha6
Show newest version
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