11 references to Bitshifter
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (11)
src\Shared\Http2cat\Http2Utilities.cs (5)
258
Bitshifter
.WriteUInt24BigEndian(buffer, (uint)frame.PayloadLength);
265
Bitshifter
.WriteUInt31BigEndian(buffer, (uint)frame.StreamId, preserveHighestBit: false);
331
Bitshifter
.WriteUInt31BigEndian(extendedHeader, (uint)streamDependency);
376
Bitshifter
.WriteUInt31BigEndian(extendedHeader.Slice(1), (uint)streamDependency);
736
Bitshifter
.WriteUInt31BigEndian(payload, (uint)streamDependency);
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);