Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ EncodeLiteralHeaderFieldWithoutNameReference() [1/3]

static bool System.Net.Http.QPack.QPackEncoder.EncodeLiteralHeaderFieldWithoutNameReference ( string name,
ReadOnlySpan< string > values,
string valueSeparator,
Encoding valueEncoding,
Span< byte > destination,
out int bytesWritten )
inlinestatic

Definition at line 85 of file QPackEncoder.cs.

86 {
87 if (EncodeNameString(name, destination, out var length) && EncodeValueString(values, valueSeparator, valueEncoding, destination.Slice(length), out var length2))
88 {
89 bytesWritten = length + length2;
90 return true;
91 }
92 bytesWritten = 0;
93 return false;
94 }
static bool EncodeValueString(string s, Encoding valueEncoding, Span< byte > buffer, out int length)
static bool EncodeNameString(string s, Span< byte > buffer, out int length)

References System.destination, System.Net.Http.QPack.QPackEncoder.EncodeNameString(), System.Net.Http.QPack.QPackEncoder.EncodeValueString(), System.length, System.length2, and System.values.