getLength method
returns the number of elements inside the array.
a use this method instead of array.length
Implementation
int getLength() {
return array.lengthInBytes ~/ array.elementSizeInBytes;
}
returns the number of elements inside the array.
a use this method instead of array.length
int getLength() {
return array.lengthInBytes ~/ array.elementSizeInBytes;
}