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