ProtocolHeader.fromByteData constructor

ProtocolHeader.fromByteData(
  1. TypeDecoder decoder
)

Implementation

ProtocolHeader.fromByteData(TypeDecoder decoder) {
  // Skip AMQP string
  decoder.skipBytes(4);
  protocolVersion = decoder.readUInt8();
  majorVersion = decoder.readUInt8();
  minorVersion = decoder.readUInt8();
  revision = decoder.readUInt8();
}