getLength method Null safety

int getLength()

Gets the current length of the stream in bits

Implementation

int getLength() {
  return _bitLength;
}