Closed satheshshiva closed 2 years ago
See https://pkg.go.dev/github.com/pierrec/lz4/v4#Compressor, esp. the last sentence: "The return value (0, nil) means the data is likely incompressible and a buffer of length CompressBlockBound(len(src)) should be passed in."
Your data is not compressible. So it doesnt do anything, unless your input buffer has the CompressBlockBound size.
Expected Output: compressed data length > 0
Actual Output: compressed data length = 0