Skip to content

Commit

Permalink
Merge pull request facebook#1384 from ulikunitz/dev
Browse files Browse the repository at this point in the history
Clarify special case of offset history update
  • Loading branch information
Cyan4973 authored Oct 23, 2018
2 parents ca46afd + f0fe9b0 commit 059aa1b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions doc/zstd_compression_format.md
Original file line number Diff line number Diff line change
Expand Up @@ -919,6 +919,10 @@ This means that when `Repeated_Offset1` (most recent) is used, history is unmodi
When `Repeated_Offset2` is used, it's swapped with `Repeated_Offset1`.
If any other offset is used, it becomes `Repeated_Offset1` and the rest are shift back by one.

In the case of an `offset_value` of 3 and the literal length of the current
sequence is zero the value `Repeated_Offset1 - 1_byte` is a new offset,
becoming the lead of the offset history and the first two repeated offsets will
be shifted back.

Skippable Frames
----------------
Expand Down

0 comments on commit 059aa1b

Please sign in to comment.