Skip to content

Commit

Permalink
consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
afrind committed Feb 2, 2021
1 parent f2019ee commit 25e8d7c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions draft-ietf-quic-qpack.md
Original file line number Diff line number Diff line change
Expand Up @@ -1811,19 +1811,20 @@ for line in fieldLines:

# encode the prefix
if requiredInsertCount == 0:
encodeInteger(prefixBuffer, 0, 0, 8)
encodeInteger(prefixBuffer, 0, 0, 7)
encodeInteger(prefixBuffer, 0x00, 0, 8)
encodeInteger(prefixBuffer, 0x00, 0, 7)
else:
wireRIC = (
requiredInsertCount
% (2 * getMaxEntries(maxTableCapacity))
) + 1;
encodeInteger(prefixBuffer, 0x00, wireRIC, 8)
if base >= requiredInsertCount:
encodeInteger(prefixBuffer, 0, base - requiredInsertCount, 7)
encodeInteger(prefixBuffer, 0x00,
base - requiredInsertCount, 7)
else:
encodeInteger(prefixBuffer, 0x80,
requiredInsertCount - base - 1, 7)
requiredInsertCount - base - 1, 7)

return encoderBuffer, prefixBuffer + streamBuffer
~~~
Expand Down

0 comments on commit 25e8d7c

Please sign in to comment.