Parse() public static method

public static Parse ( Stream input ) : ServerNameList
input Stream
return ServerNameList
Ejemplo n.º 1
0
        public static ServerNameList ReadServerNameExtension(byte[] extensionData)
        {
            if (extensionData == null)
            {
                throw new ArgumentNullException("extensionData");
            }
            MemoryStream   memoryStream = new MemoryStream(extensionData, writable: false);
            ServerNameList result       = ServerNameList.Parse(memoryStream);

            TlsProtocol.AssertEmpty(memoryStream);
            return(result);
        }
        public static ServerNameList ReadServerNameExtension(byte[] extensionData)
        {
            if (extensionData == null)
            {
                throw new ArgumentNullException("extensionData");
            }
            MemoryStream   input = new MemoryStream(extensionData, false);
            ServerNameList list  = ServerNameList.Parse(input);

            TlsProtocol.AssertEmpty(input);
            return(list);
        }
Ejemplo n.º 3
0
        public static ServerNameList ReadServerNameExtension(byte[] extensionData)
        {
            //IL_0008: Unknown result type (might be due to invalid IL or missing references)
            //IL_0010: Unknown result type (might be due to invalid IL or missing references)
            //IL_0016: Expected O, but got Unknown
            if (extensionData == null)
            {
                throw new ArgumentNullException("extensionData");
            }
            MemoryStream   val    = new MemoryStream(extensionData, false);
            ServerNameList result = ServerNameList.Parse((Stream)(object)val);

            TlsProtocol.AssertEmpty(val);
            return(result);
        }