Skip to content

Commit

Permalink
Truncatencode
Browse files Browse the repository at this point in the history
Co-authored-by: Martin Thomson <mt@lowentropy.net>
  • Loading branch information
MikeBishop and martinthomson committed Nov 4, 2020
1 parent 71c778f commit cc68411
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions draft-ietf-quic-transport.md
Original file line number Diff line number Diff line change
Expand Up @@ -7492,9 +7492,9 @@ EncodePacketNumber(full_pn, largest_acked):
min_bits = log(num_unacked, 2) + 1
num_bytes = ceil(min_bits / 8)

// Return the value after truncating the full packet number
// to num_bytes least-significant bytes
return truncate(full_pn, num_bytes)
// Encode the integer value and truncate to the
// num_bytes least-significant bytes.
return encode(full_pn, num_bytes)
~~~
{: #alg-encode-pn title="Sample Packet Number Encoding Algorithm"}

Expand Down

0 comments on commit cc68411

Please sign in to comment.