Skip to content

Commit

Permalink
Fix lint error (figure too wide) via creative variable renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitri Tikhonov committed Oct 12, 2018
1 parent e5bdb88 commit 8f769aa
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions draft-ietf-quic-qpack.md
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ The decoder reconstructs the Largest Reference using the following algorithm:
~~~
if LargestReference > 0:
LargestReference -= 1
CurrentWrapped = TableLargestAbsoluteIndex mod (2*MaxEntries)
CurrentWrapped = TotalNumberOfInserts mod (2*MaxEntries)

if CurrentWrapped >= LargestReference + MaxEntries:
# Largest Reference wrapped around 1 extra time
Expand All @@ -735,13 +735,12 @@ The decoder reconstructs the Largest Reference using the following algorithm:
# Decoder wrapped around 1 extra time
CurrentWrapped += 2*MaxEntries

LargestReference +=
(TableLargestAbsoluteIndex - CurrentWrapped)
LargestReference += (TotalNumberOfInserts - CurrentWrapped)
~~~

TableLargestAbsoluteIndex is the Absolute Index of the most recently inserted
item in the decoder's dynamic table. This encoding limits the length of the
prefix on long-lived connections.
TotalNumberOfInserts is the total number of inserts into the decoder's
dynamic table. This encoding limits the length of the prefix on
long-lived connections.

`Base Index` is used to resolve references in the dynamic table as described in
{{relative-indexing}}.
Expand Down

0 comments on commit 8f769aa

Please sign in to comment.