sizeOf

fun sizeOf(ignored: Int): Long

Return the shallow size of the provided Integer object. Ignores the possibility that this object is part of the VM IntegerCache


fun sizeOf(ignored: Long): Long

Return the shallow size of the provided Long object. Ignores the possibility that this object is part of the VM LongCache


fun sizeOf(arr: ByteArray): Long

Returns the size in bytes of the byte[] object.


Returns the size in bytes of the boolean[] object.


fun sizeOf(arr: CharArray): Long

Returns the size in bytes of the char[] object.


Returns the size in bytes of the short[] object.


fun sizeOf(arr: IntArray): Long

Returns the size in bytes of the int[] object.


Returns the size in bytes of the float[] object.


fun sizeOf(arr: LongArray): Long

Returns the size in bytes of the long[] object.


Returns the size in bytes of the double[] object.


fun sizeOf(arr: Array<String>): Long

Returns the size in bytes of the String[] object.


fun sizeOf(q: Query): Long

Returns the size in bytes of a Query object. Unknown query types will be estimated as .QUERY_DEFAULT_RAM_BYTES_USED.


fun sizeOf(q: Query, defSize: Long): Long

Returns the size in bytes of a Query object. Unknown query types will be estimated using .shallowSizeOf, or using the supplied defSize parameter if its value is greater than 0.


fun sizeOf(accountable: Accountable): Long

Returns the size in bytes of the Accountable object, using its method.


fun sizeOf(s: String?): Long

Returns the size in bytes of the String object.


@JvmName(name = "sizeOfAccountableNullable")
fun sizeOf(accountables: Array<Accountable?>): Long

Return the size of the provided array of Accountables by summing up the shallow size of the array and the memory usage reported by each [ ].


fun sizeOf(accountables: Array<Accountable>): Long