OriginMessage constructor

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

Implementation

OriginMessage(Uint8List bytes, Encoding encoding) {
  final reader = ByteDataReader()..add(bytes);
  // reading order matters
  commitLSN = reader.readLSN();
  name = reader.decodeString(encoding);
}