parse static method
Parse from bytes, skipping the leading type varint.
Implementation
static DatagramCapsule parse(Uint8List bytes) {
final typeByteLength = VarInt.decodeLength(bytes[0]);
final payload = Uint8List.sublistView(bytes, typeByteLength);
return DatagramCapsule(payload);
}