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

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

            AuthSchemes = new AuthScheme(reader);
            Extensions  = new ExtensionVector(reader);
        }
Example #2
0
 internal static bool CanDecode(ReadOnlyMemory <byte> data)
 {
     return(NegotiateMessageHeader.HasHeader(data));
 }