Skip to content
No description or website provided.
C Ruby
Find file
Latest commit 88539d0 Dec 21, 2011 Michael Kuehl forgot to set pointer to null
Failed to load latest commit information.
ext forgot to set pointer to null Dec 21, 2011
lib/i386-mswin32 const VERSION 0.1.2 -> 0.1.3 Jan 12, 2011
.hgignore first commit Jan 10, 2011
LICENSE.txt first commit Jan 10, 2011
README update readme to explain why we forked Dec 20, 2011
lzo-ruby.sln first commit Jan 10, 2011
lzo-ruby.vcproj rebuild binary Jan 10, 2011
lzoruby-mswin32.gemspec
lzoruby.gemspec forgot to set pointer to null Dec 21, 2011

README

= LZO/Ruby

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

== Description

This is a fork of the main lzo-ruby gem that removes the 5 bytes of header fields added to the compressed string, to make it compatible with other lzo libraries.

Ruby bindings for LZO.

LZO is a portable lossless data compression library written in ANSI C.

== Source Code

Forked Repo:
https://github.com/expectedbehavior/lzo-ruby

Main Repo:
https://bitbucket.org/winebarrel/lzo-ruby

== Install

gem install lzoruby

== Example

    require 'lzoruby'
    require 'open-uri'
    
    source = open('http://www.yahoo.co.jp/') {|f| f.read }
    
    puts "uncompress size: #{source.length}"
    
    # compress
    comp_data = LZO.compress(source)
    puts "compress size: #{comp_data.length}"
    
    # compress (level 9)
    comp9_data = LZO.compress(source, 9)
    puts "compress size (L9): #{comp9_data.length}"
    
    # decompress
    decomp_data = LZO.decompress(comp_data)
    puts "decompress size: #{decomp_data.length}"
    puts "decomp_data success?: #{source == decomp_data}"
    
    # decompress (level 9)
    decomp9_data = LZO.decompress(comp9_data)
    puts "decompress size (L9): #{decomp9_data.length}"
    puts "decomp_data success? (L9): #{source == decomp9_data}"

=== LZO

LZO/Ruby contains LZO.

LZO is a portable lossless data compression library written in ANSI C. 

* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Markus F.X.J. Oberhumer
* http://www.oberhumer.com/opensource/lzo/
Something went wrong with that request. Please try again.