Replies: 1 comment 7 replies
-
Try sending real data instead of just 0s. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm trying to build a zstd dictionary from a bunch of samples. However, I'm not sure what the
history
field refers to in theBuildDictOptions
. It's a required field, as if you leave it out,BuildDict()
returns the errordictionary of size 0 < 8
.So I believe it represents the actual dictionary contents, so I passed it an unpopulated byte slice of size 1024, to represent a max dictionary size of 1Kb. I was thinking
BuildDict()
would populate the slice.However, this results in the error
panic: BUG: unexpected error in ZSTD_compress_usingCDict_wrapper: Dictionary mismatch
.Can anyone help me understand how to properly use
BuildDict()
? Thanks for any help, I appreciate it!Beta Was this translation helpful? Give feedback.
All reactions