跳到主要内容

CertDecompressor

特性 CertDecompressor 

Source
pub trait CertDecompressor:
    Debug
    + Send
    + Sync {
    // Required methods
    fn decompress(
        &self,
        input: &[u8],
        output: &mut [u8],
    ) -> Result<(), DecompressionFailed>;
    fn algorithm(&self) -> CertificateCompressionAlgorithm;
}
展开描述

可用的证书解压缩算法

必需方法§

Source

fn decompress( &self, input: &[u8], output: &mut [u8], ) -> Result<(), DecompressionFailed>

Decompress input, writing 结果 到 output

output is sized 到 match the declared length of the decompressed data.

Err(DecompressionFailed) should be returned if decompression produces more, 或 fewer bytes than fit in output, 或 if the input is in any way malformed.

Source

fn algorithm(&self) -> CertificateCompressionAlgorithm

此解压缩器处理的算法

实现者§