TruncateMessage constructor

TruncateMessage(
  1. Uint8List bytes
)

Implementation

TruncateMessage(Uint8List bytes) {
  final reader = ByteDataReader()..add(bytes);
  relationNum = reader.readUint32();
  option = TruncateOptions.fromValue(reader.readUint8());
  for (var i = 0; i < relationNum; i++) {
    final id = reader.readUint32();
    relationIds.add(id);
  }
}