public NegotiateMessage(BinaryReader reader)
        {
            Header = new NegotiateMessageHeader(reader);

            Random          = reader.ReadBytes(32);
            ProtocolVersion = reader.ReadUInt64();

            AuthSchemes = new AuthScheme(reader);
            Extensions  = new ExtensionVector(reader);
        }
Exemple #2
0
        public NegotiateMessage(ReadOnlyMemory <byte> data)
        {
            Header = new NegotiateMessageHeader(data, out BinaryReader reader);

            Random          = reader.ReadBytes(32);
            ProtocolVersion = reader.ReadUInt64();

            AuthSchemes = new AuthScheme(reader);
            Extensions  = new ExtensionVector(reader);
        }