DeleteMessage constructor

DeleteMessage(
  1. Uint8List bytes,
  2. Encoding encoding
)

Implementation

DeleteMessage(Uint8List bytes,Encoding encoding) {
  final reader = ByteDataReader()..add(bytes);
  relationID = reader.readUint32();
  oldTupleType = DeleteMessageTuple.fromByte(reader.readUint8());

  switch (oldTupleType) {
    case DeleteMessageTuple.keyType:
    case DeleteMessageTuple.oldType:
      oldTuple = TupleData(reader,encoding);
      break;
    default:
      throw Exception('Unknown tuple type for DeleteMessage');
  }
}