lib/compression/lzxpress: shift encoding into helper functions
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 24 Nov 2022 23:38:11 +0000 (12:38 +1300)
committerJoseph Sutton <jsutton@samba.org>
Thu, 1 Dec 2022 22:56:40 +0000 (22:56 +0000)
commitcaa643e36e671be9cb446afc99dfae3003aa8c6e
tree65c4ab9727b48ac44982aa1c784bc079cfbfa899
parentfb35cf29a426ee2cb0ee280e147627fd3e84a71d
lib/compression/lzxpress: shift encoding into helper functions

This makes it easier to rework the encoding decision to depend on a
hash table match rather than the current exhaustive search.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Joseph Sutton <josephsutton@catalyst.net.nz>
lib/compression/lzxpress.c