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

◆ WriteBytes()

void System.Net.Http.Http2Connection.WriteBytes ( ReadOnlySpan< byte > bytes,
ref System::Net::ArrayBuffer headerBuffer )
inlineprivate

Definition at line 2712 of file Http2Connection.cs.

2713 {
2714 if (System.Net.NetEventSource.Log.IsEnabled())
2715 {
2716 Trace($"{"Length"}={bytes.Length}", "WriteBytes");
2717 }
2718 if (bytes.Length > headerBuffer.AvailableLength)
2719 {
2720 headerBuffer.EnsureAvailableSpace(bytes.Length);
2721 }
2722 bytes.CopyTo(headerBuffer.AvailableSpan);
2723 headerBuffer.Commit(bytes.Length);
2724 }
void CopyTo(KeyValuePair< TKey, TValue >[] array, int index)
override void Trace(string message, [CallerMemberName] string memberName=null)
static readonly System.Net.NetEventSource Log

References System.bytes, System.Collections.Generic.Dictionary< TKey, TValue >.CopyTo(), System.Net.NetEventSource.Log, and System.Net.Http.Http2Connection.Trace().

Referenced by System.Net.Http.Http2Connection.WriteHeaderCollection(), and System.Net.Http.Http2Connection.WriteHeaders().