-
Notifications
You must be signed in to change notification settings - Fork 216
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
90ea149
commit 3f80865
Showing
18 changed files
with
2,742 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# <!-- rdoc-file=ext/zlib/zlib.c --> | ||
# This module provides access to the [zlib library](http://zlib.net). Zlib is | ||
# designed to be a portable, free, general-purpose, legally unencumbered -- that | ||
# is, not covered by any patents -- lossless data-compression library for use on | ||
# virtually any computer hardware and operating system. | ||
# | ||
# The zlib compression library provides in-memory compression and decompression | ||
# functions, including integrity checks of the uncompressed data. | ||
# | ||
# The zlib compressed data format is described in RFC 1950, which is a wrapper | ||
# around a deflate stream which is described in RFC 1951. | ||
# | ||
# The library also supports reading and writing files in gzip (.gz) format with | ||
# an interface similar to that of IO. The gzip format is described in RFC 1952 | ||
# which is also a wrapper around a deflate stream. | ||
# | ||
# The zlib format was designed to be compact and fast for use in memory and on | ||
# communications channels. The gzip format was designed for single-file | ||
# compression on file systems, has a larger header than zlib to maintain | ||
# directory information, and uses a different, slower check method than zlib. | ||
# | ||
# See your system's zlib.h for further information about zlib | ||
# | ||
# ## Sample usage | ||
# | ||
# Using the wrapper to compress strings with default parameters is quite simple: | ||
# | ||
# require "zlib" | ||
# | ||
# data_to_compress = File.read("don_quixote.txt") | ||
# | ||
# puts "Input size: #{data_to_compress.size}" | ||
# #=> Input size: 2347740 | ||
# | ||
# data_compressed = Zlib::Deflate.deflate(data_to_compress) | ||
# | ||
# puts "Compressed size: #{data_compressed.size}" | ||
# #=> Compressed size: 887238 | ||
# | ||
# uncompressed_data = Zlib::Inflate.inflate(data_compressed) | ||
# | ||
# puts "Uncompressed data is: #{uncompressed_data}" | ||
# #=> Uncompressed data is: The Project Gutenberg EBook of Don Quixote... | ||
# | ||
# ## Class tree | ||
# | ||
# * Zlib::Deflate | ||
# * Zlib::Inflate | ||
# * Zlib::ZStream | ||
# * Zlib::Error | ||
# * Zlib::StreamEnd | ||
# * Zlib::NeedDict | ||
# * Zlib::DataError | ||
# * Zlib::StreamError | ||
# * Zlib::MemError | ||
# * Zlib::BufError | ||
# * Zlib::VersionError | ||
# * Zlib::InProgressError | ||
# | ||
# | ||
# | ||
# (if you have GZIP_SUPPORT) | ||
# * Zlib::GzipReader | ||
# * Zlib::GzipWriter | ||
# * Zlib::GzipFile | ||
# * Zlib::GzipFile::Error | ||
# * Zlib::GzipFile::LengthError | ||
# * Zlib::GzipFile::CRCError | ||
# * Zlib::GzipFile::NoFooter | ||
# | ||
module Zlib | ||
# <!-- rdoc-file=ext/zlib/zlib.c --> | ||
# Subclass of Zlib::Error when zlib returns a Z_BUF_ERROR. | ||
# | ||
# Usually if no progress is possible. | ||
# | ||
class BufError < Zlib::Error | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# <!-- rdoc-file=ext/zlib/zlib.c --> | ||
# This module provides access to the [zlib library](http://zlib.net). Zlib is | ||
# designed to be a portable, free, general-purpose, legally unencumbered -- that | ||
# is, not covered by any patents -- lossless data-compression library for use on | ||
# virtually any computer hardware and operating system. | ||
# | ||
# The zlib compression library provides in-memory compression and decompression | ||
# functions, including integrity checks of the uncompressed data. | ||
# | ||
# The zlib compressed data format is described in RFC 1950, which is a wrapper | ||
# around a deflate stream which is described in RFC 1951. | ||
# | ||
# The library also supports reading and writing files in gzip (.gz) format with | ||
# an interface similar to that of IO. The gzip format is described in RFC 1952 | ||
# which is also a wrapper around a deflate stream. | ||
# | ||
# The zlib format was designed to be compact and fast for use in memory and on | ||
# communications channels. The gzip format was designed for single-file | ||
# compression on file systems, has a larger header than zlib to maintain | ||
# directory information, and uses a different, slower check method than zlib. | ||
# | ||
# See your system's zlib.h for further information about zlib | ||
# | ||
# ## Sample usage | ||
# | ||
# Using the wrapper to compress strings with default parameters is quite simple: | ||
# | ||
# require "zlib" | ||
# | ||
# data_to_compress = File.read("don_quixote.txt") | ||
# | ||
# puts "Input size: #{data_to_compress.size}" | ||
# #=> Input size: 2347740 | ||
# | ||
# data_compressed = Zlib::Deflate.deflate(data_to_compress) | ||
# | ||
# puts "Compressed size: #{data_compressed.size}" | ||
# #=> Compressed size: 887238 | ||
# | ||
# uncompressed_data = Zlib::Inflate.inflate(data_compressed) | ||
# | ||
# puts "Uncompressed data is: #{uncompressed_data}" | ||
# #=> Uncompressed data is: The Project Gutenberg EBook of Don Quixote... | ||
# | ||
# ## Class tree | ||
# | ||
# * Zlib::Deflate | ||
# * Zlib::Inflate | ||
# * Zlib::ZStream | ||
# * Zlib::Error | ||
# * Zlib::StreamEnd | ||
# * Zlib::NeedDict | ||
# * Zlib::DataError | ||
# * Zlib::StreamError | ||
# * Zlib::MemError | ||
# * Zlib::BufError | ||
# * Zlib::VersionError | ||
# * Zlib::InProgressError | ||
# | ||
# | ||
# | ||
# (if you have GZIP_SUPPORT) | ||
# * Zlib::GzipReader | ||
# * Zlib::GzipWriter | ||
# * Zlib::GzipFile | ||
# * Zlib::GzipFile::Error | ||
# * Zlib::GzipFile::LengthError | ||
# * Zlib::GzipFile::CRCError | ||
# * Zlib::GzipFile::NoFooter | ||
# | ||
module Zlib | ||
# <!-- rdoc-file=ext/zlib/zlib.c --> | ||
# Subclass of Zlib::Error when zlib returns a Z_DATA_ERROR. | ||
# | ||
# Usually if a stream was prematurely freed. | ||
# | ||
class DataError < Zlib::Error | ||
end | ||
end |
Oops, something went wrong.