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

desktopMain.com.seiko.imageloader.cache.memory.MemoryCacheBuilder.desktop.kt Maven / Gradle / Ivy

There is a newer version: 1.9.0
Show newest version
package com.seiko.imageloader.cache.memory

actual class MemoryCacheBuilder : CommonMemoryCacheBuilder() {

    override var maxSizePercent: Double = STANDARD_MEMORY_MULTIPLIER

    override fun calculateMemoryCacheSize(percent: Double): Int {
        val memoryClassBytes = Runtime.getRuntime().totalMemory()
        return (percent * memoryClassBytes).toInt()
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy