desktopMain.com.seiko.imageloader.cache.memory.MemoryCacheBuilder.desktop.kt Maven / Gradle / Ivy
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