bytesAvailable property
int
get
bytesAvailable
The number of bytes of data available for reading from the current position in the byte array to the end of the array.
Implementation
int get bytesAvailable {
return length - position;
}