ZstdOpenEncoder keeps one libzstd context with an explicit level and window, and ZstdWriteEncoder, ZstdFlushEncoder and ZstdFinishEncoder stream checksummed frames through caller buffers. ZstdResetEncoder reuses the context for the next frame. ZstdDecodeFrames decodes one or more dictionary-free frames, skipping skippable frames, into a bounded output. The native and CLI interoperability tests cover both.