AuthenticationMessage constructor

AuthenticationMessage(
  1. Uint8List bytes
)

Implementation

factory AuthenticationMessage(Uint8List bytes) {
  final type = ByteData.view(bytes.buffer, bytes.offsetInBytes).getUint32(0);
  return AuthenticationMessage._(type, bytes.sublist(4));
}