InsertMessage constructor

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

Implementation

InsertMessage(Uint8List bytes, Encoding encoding) {
  final reader = ByteDataReader()..add(bytes);
  relationID = reader.readUint32();
  final tupleType = reader.readUint8();
  if (tupleType != 'N'.codeUnitAt(0)) {
    throw Exception("InsertMessage must have 'N' tuple type");
  }
  tuple = TupleData(reader,encoding);
}