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

◆ SendWindowUpdateAsync()

Task System.Net.Http.Http2Connection.SendWindowUpdateAsync ( int streamId,
int amount )
inlineprivate

Definition at line 3000 of file Http2Connection.cs.

3001 {
3002 return PerformWriteAsync(13, (this, streamId, amount), delegate((Http2Connection thisRef, int streamId, int amount) s, Memory<byte> writeBuffer)
3003 {
3004 if (System.Net.NetEventSource.Log.IsEnabled())
3005 {
3006 s.thisRef.Trace(s.streamId, $"Started writing. {"amount"}={s.amount}", "SendWindowUpdateAsync");
3007 }
3008 Span<byte> span = writeBuffer.Span;
3009 FrameHeader.WriteTo(span, 4, FrameType.WindowUpdate, FrameFlags.None, s.streamId);
3010 BinaryPrimitives.WriteInt32BigEndian(span.Slice(9), s.amount);
3011 return true;
3012 });
3013 }
static void WriteInt32BigEndian(Span< byte > destination, int value)
Http2Connection(HttpConnectionPool pool, Stream stream)
static readonly System.Net.NetEventSource Log

References System.Net.NetEventSource.Log, System.s, System.Buffers.Binary.BinaryPrimitives.WriteInt32BigEndian(), and System.Net.Http.Http2Connection.FrameHeader.WriteTo().

Referenced by System.Net.Http.Http2Connection.Http2StreamWindowManager.AdjustWindowDynamic(), System.Net.Http.Http2Connection.Http2StreamWindowManager.AjdustWindowStatic(), and System.Net.Http.Http2Connection.ExtendWindow().