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

◆ EncodeLiteralHeaderFieldWithoutNameReference() [2/3]

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

Definition at line 74 of file QPackEncoder.cs.

75 {
76 if (EncodeNameString(name, destination, out var length) && EncodeValueString(value, valueEncoding, destination.Slice(length), out var length2))
77 {
78 bytesWritten = length + length2;
79 return true;
80 }
81 bytesWritten = 0;
82 return false;
83 }
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.value.