public static Parse ( Stream input ) : |
||
input | Stream | |
Результат |
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); }
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); }