Returns the length of padding at the end of the packet before the MAC. packet can be partitial.
packet
static int readPaddingLength(Uint8List packet) { return ByteData.sublistView(packet).getUint8(4); }