System\Net\Http\SocketsHttpHandler\SocksHelper.cs (5)
122byte usernameLength = EncodeString(credentials.UserName, buffer.AsSpan(2), nameof(credentials.UserName));
124byte passwordLength = EncodeString(credentials.Password, buffer.AsSpan(3 + usernameLength), nameof(credentials.Password));
177byte hostLength = EncodeString(host, buffer.AsSpan(5), nameof(host));
282byte usernameLength = EncodeString(credentials?.UserName, buffer.AsSpan(8), nameof(credentials.UserName));
289byte hostLength = EncodeString(host, buffer.AsSpan(totalLength), nameof(host));