26 references to IntegerEncoder
Microsoft.AspNetCore.Server.Kestrel.Core (26)
src\Shared\runtime\Http2\Hpack\HPackEncoder.cs (10)
37return IntegerEncoder.Encode(index, 7, destination, out bytesWritten); 93if (IntegerEncoder.Encode(index, 4, destination, out int indexLength)) 125if (IntegerEncoder.Encode(index, 4, destination, out int indexLength)) 157if (IntegerEncoder.Encode(index, 6, destination, out int indexLength)) 195if (IntegerEncoder.Encode(index, 4, destination, out int indexLength)) 374if (IntegerEncoder.Encode(value.Length, 7, destination, out int integerLength)) 424if (IntegerEncoder.Encode(value.Length, 7, destination, out int integerLength)) 468if (IntegerEncoder.Encode(encodedStringLength, 7, destination, out int integerLength)) 506return IntegerEncoder.Encode(value, 5, destination, out bytesWritten); 549if (IntegerEncoder.Encode(valueLength, 7, destination, out int integerLength))
src\Shared\runtime\Http3\QPack\QPackEncoder.cs (16)
28return IntegerEncoder.Encode(index, 6, destination, out bytesWritten); 39Span<byte> buffer = stackalloc byte[IntegerEncoder.MaxInt32EncodedLength]; 72if (IntegerEncoder.Encode(index, 4, destination, out int headerBytesWritten)) 93Span<byte> temp = stackalloc byte[IntegerEncoder.MaxInt32EncodedLength]; 96bool res = IntegerEncoder.Encode(index, 4, temp, out int headerBytesWritten); 104Span<byte> temp = value.Length < 256 ? stackalloc byte[256 + IntegerEncoder.MaxInt32EncodedLength * 2] : new byte[value.Length + IntegerEncoder.MaxInt32EncodedLength * 2]; 164Span<byte> temp = name.Length < 256 ? stackalloc byte[256 + IntegerEncoder.MaxInt32EncodedLength] : new byte[name.Length + IntegerEncoder.MaxInt32EncodedLength]; 174Span<byte> temp = (name.Length + value.Length) < 256 ? stackalloc byte[256 + IntegerEncoder.MaxInt32EncodedLength * 2] : new byte[name.Length + value.Length + IntegerEncoder.MaxInt32EncodedLength * 2]; 192if (IntegerEncoder.Encode(encodedStringLength, 7, buffer, out int nameLength)) 255if (IntegerEncoder.Encode(valueLength, 7, buffer, out int nameLength)) 324if (IntegerEncoder.Encode(s.Length, 3, buffer, out int nameLength)) 360if (!IntegerEncoder.Encode(0, 8, destination, out length)) 375if (!IntegerEncoder.Encode(0, 7, destination, out length))