package ezgzip
 sectionYPositions = computeSectionYPositions($el), 10)"
  x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
  >
  
  
On This Page
  
  
  # ezgzip - Simple gzip (de)compression library
Install
    
    dune-project
 Dependency
Authors
Maintainers
Sources
  
    
      v0.2.0.tar.gz
    
    
        
    
  
  
  
    
  
  
    
  
        sha256=369b0110706dde80cc676fd5b79f0d7095254b7fe28aba815a2a2359c41cbbfb
    
    
  md5=22057f2528e282a1af961b36f61d5271
    
    
  Description
ezgzip is a simple interface focused on string -> string zlib and gzip
(de)compression.
Documentation is available here.
An example illustrating how to gzip compress and then decompress a string:
open Rresult
let () =
  let original = "Hello world" in
  let compressed = Ezgzip.compress original in
  let decompressed = R.get_ok (Ezgzip.decompress compressed) in
  assert (original = decompressed)
This library currently uses the zlib bindings provided by camlzip. The gzip header/footer code is based on the upstream specification.
Published: 23 Feb 2018
README
ezgzip - Simple gzip (de)compression library
Documentation is available here.
open Rresult
let () =
  let original = "Hello world" in
  let compressed = Ezgzip.compress original in
  let decompressed = R.get_ok (Ezgzip.decompress compressed) in
  assert (original = decompressed)Compile
makeLoad an interactive environment for testing
make replThe library will be available from this environment.
Run tests
make testRun benchmarks
make benchmarkBuild documentation
make docUpload documentation to github pages
NOTE: This requires push permissions to the repository...
make gh-pages
           sectionYPositions = computeSectionYPositions($el), 10)"
  x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
  >
  
  
  On This Page