pub type SafeResult = Result<usize, ErrorCode>;
Wrapper result around most zstd functions.
Either a success code (usually number of bytes written), or an error code.