TypeMessage constructor

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

Implementation

TypeMessage(Uint8List bytes,Encoding encoding) {
  final reader = ByteDataReader()..add(bytes);
  // reading order matters
  dataType = reader.readUint32();
  nameSpace = reader.decodeString(encoding);
  name = reader.decodeString(encoding);
}