10 references to Bitshifter
Microsoft.AspNetCore.Server.Kestrel.Core (10)
Internal\Http2\Http2FrameWriter.cs (4)
864
Bitshifter
.WriteUInt31BigEndian(buffer, (uint)sizeIncrement, preserveHighestBit: false);
1000
Bitshifter
.WriteUInt31BigEndian(buffer, (uint)lastStreamId, preserveHighestBit: false);
1033
Bitshifter
.WriteUInt24BigEndian(buffer, (uint)frame.PayloadLength);
1040
Bitshifter
.WriteUInt31BigEndian(buffer, (uint)frame.StreamId, preserveHighestBit: false);
src\Shared\ServerInfrastructure\Http2\Http2FrameReader.cs (6)
51
var payloadLength = (int)
Bitshifter
.ReadUInt24BigEndian(header);
67
frame.StreamId = (int)
Bitshifter
.ReadUInt31BigEndian(header.Slice(StreamIdOffset));
133
frame.HeadersStreamDependency = (int)
Bitshifter
.ReadUInt31BigEndian(extendedHeaders);
153
frame.GoAwayLastStreamId = (int)
Bitshifter
.ReadUInt31BigEndian(extendedHeaders);
165
frame.PriorityStreamDependency = (int)
Bitshifter
.ReadUInt31BigEndian(extendedHeaders);
184
frame.WindowUpdateSizeIncrement = (int)
Bitshifter
.ReadUInt31BigEndian(extendedHeaders);