netty5/codec/src
时无两丶 60cbe8b7b2
Let LzfEncoder support length aware ability. (#10082)
Motivation:

Since the LZF support non-compress and compress format, we can let LzfEncoder support length aware ability. It can let the user control compress.

Modification:

When the data length over compressThreshold, LzfEncoder use compress format to compress data. Otherwise, only use non-compress format. Whatever compress format the encoder use, the LzfDecoder can decompress data well.

Result:

Gives users control over compression capabilities
2020-03-11 21:05:22 +01:00
..
main/java/io/netty/handler/codec Let LzfEncoder support length aware ability. (#10082) 2020-03-11 21:05:22 +01:00
test Let LzfEncoder support length aware ability. (#10082) 2020-03-11 21:05:22 +01:00