class Zstd::Compress::Context
- Zstd::Compress::Context
- Zstd::Context
- Reference
- Object
Overview
Usage:
cctx = Zstd::Compress::Context.new
buf = Bytes.new 22
cbuf = cctx.compress bufDefined in:
Constructors
Instance Method Summary
- #checksum
- #checksum=(value : Bool)
- #compress(src : Bytes, dst : Bytes = Bytes.new(compress_bound(src.bytesize))) : Bytes
- 
        #compress_bound(size)
        
          Maximum output buffer size for compression 
- #dict : Zstd::Dict?
- 
        #dict=(d : Zstd::Dict)
        
          Overrides compression level. 
- #level
- #level=(val)
- 
        #memsize
        
          Give the current memory usage of zstd context. 
- #threads
- #threads=(val)
Constructor Detail
Instance Method Detail
        
        def memsize
        #
      
      
        Give the current memory usage of zstd context.
Note that object memory usage can evolve (increase or decrease) over time.