pub fn encode(data: &[u8]) -> Result<Vec<u8>, CodecError>
Compress raw bytes using Zstd at the default level (3).