toggle menu
KAHelpers
androidJvm
switch theme
search in API
kotlinextensions
/
dev.funkymuse.kotlinextensions.memory
Package-level
declarations
Functions
Properties
Properties
file
Size
Units
Link copied to clipboard
val
fileSizeUnits
:
Array
<
String
>
Functions
get
Memory
Usage
Link copied to clipboard
fun
getMemoryUsage
(
transform
:
(
Long
,
Long
,
Long
,
Long
,
Int
)
->
String
=
{ _, _, max, usage, percent -> "$usage / $max MB in use ($percent%)" }
)
:
Pair
<
Int
,
String
>
to
File
Size
Link copied to clipboard
fun
Long
.
toFileSize
(
)
:
Long
to
File
Size
String
Link copied to clipboard
fun
Long
.
toFileSizeString
(
)
:
String