kotlin-stdlib / kotlin / ByteArray / size size Common JVM JS Native 1.0 val size: Int(Common source) (JS source) (Native source) Returns the number of elements in the array.