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

commonMain.com.ditchoom.buffer.AllocationZone.kt Maven / Gradle / Ivy

There is a newer version: 1.4.2
Show newest version
package com.ditchoom.buffer

sealed class AllocationZone {

    /** Allocates a buffer in the java heap.*/
    object Heap : AllocationZone()

    /** Allocates a direct buffer in native memory.*/
    object Direct : AllocationZone()

    /** Allocates a direct buffer in native shared memory. Requires Android API 27, Oreo MR1. Otherwise defaults to [Direct].*/
    object AndroidSharedMemory : AllocationZone()

    class Custom(val allocator: (Int) -> PlatformBuffer) : AllocationZone()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy