readPaddingLength static method

int readPaddingLength(
  1. Uint8List packet
)

Returns the length of padding at the end of the packet before the MAC. packet can be partitial.

Implementation

static int readPaddingLength(Uint8List packet) {
  return ByteData.sublistView(packet).getUint8(4);
}