Import with #import "std/zstd_go".
Encoder :: structDecoder :: structEncoderOption :: structDecoderOption :: structEncoderLevel :: structEncoderResult :: struct { value: *Encoder; error: Error; }DecoderResult :: struct { value: *Decoder; error: Error; }NewEncoder :: (writer: io.Writer, level: isize, window_bytes: isize, literal_entropy: bool) -> EncoderResultLiteral entropy matters for data such as base64, even without repeated strings. The provider's numeric levels select its nearest preset, not native zstd effort.
Reset :: (encoder: *Encoder, writer: io.Writer)CloseEncoder :: (encoder: *Encoder) -> ErrorDecodeLimited :: (input: []u8, limit: s64, window_bytes: u64) -> io.ReadAllResultStreaming decompression limits both the advertised window and returned bytes. Read one extra decoded byte so an expansion beyond the caller's limit fails.