elect
05/17/2018, 8:24 AMprivate val <R> KProperty1<out Bufferizable, R>.size: Int
get() = when (returnType) {
Int::class.defaultType -> Int.BYTES // Ok
Array<Int>::class.defaultType -> 4 // Dummy, but it doent work
Array<Any?>::class.defaultType -> 5 // Neither, same with `out`
else -> throw Error(toString()) // Always throws
}