readRemainingLength static method

int readRemainingLength(
  1. MqttByteBuffer headerStream
)

Get the remaining byte length in the buffer

Implementation

static int readRemainingLength(MqttByteBuffer headerStream) {
  final lengthBytes = readLengthBytes(headerStream);
  return calculateLength(lengthBytes);
}