Source

FastLZ/Ruby /

Filename Size Date modified Message
ext
lib/i386-mswin32
72 B
54 B
903 B
598 B
887 B
4.6 KB
529 B
= FastLZ/Ruby

Copyright (c) 2011 SUGAWARA Genki <sgwr_dts@yahoo.co.jp>

== Description

Ruby bindings for FastLZ.

FastLZ is very fast compression library.

== Source Code

https://bitbucket.org/winebarrel/fastlz-ruby

== Install

gem install fastlz

== Example

    require 'fastlz'
    
    source = <<-EOS
    London Bridge Is falling down,
    Falling down, Falling down.
    London Bridge Is falling down,
    My fair lady.
    EOS
    
    comp_data = FastLZ.compress(source)
    decomp_data = FastLZ.decompress(comp_data)
    
    puts <<-EOS
    - block compress -
    uncompress size: #{source.length}
    compress size: #{comp_data.length}
    decompress size: #{decomp_data.length}
    decompress success?: #{source == decomp_data}
    EOS

=== FastLZ

FastLZ/Ruby contains FastLZ.

* http://fastlz.org/
*  Copyright (C) 2006-2007 Ariya Hidayat