Skip to content

Commit

Permalink
[Truffle] Added a bunch of Zlib constants.
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvdrum committed May 29, 2015
1 parent a6f927d commit 4fb5c0f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions lib/ruby/truffle/truffle/zlib.rb
Expand Up @@ -8,11 +8,47 @@

module Zlib

BINARY = 0
ASCII = 1
UNKNOWN = 2

DEF_MEM_LEVEL = 8
MAX_MEM_LEVEL = 9

OS_MSDOS = 0
OS_AMIGA = 1
OS_VMS = 2
OS_CODE = 3
OS_UNIX = 3
OS_VMCMS = 4
OS_ATARI = 5
OS_OS2 = 6
OS_MACOS = 7
OS_ZSYSTEM = 8
OS_CPM = 9
OS_TOPS20 = 10
OS_WIN32 = 11
OS_QDOS = 12
OS_RISCOS = 13
OS_UNKNOWN = 255

DEFAULT_STRATEGY = 0
FILTERED = 1
HUFFMAN_ONLY = 2

NO_FLUSH = 0
SYNC_FUSH = 2
FULL_FLUSH = 3
FINISH = 4

NO_COMPRESSION = 0
BEST_SPEED = 1
BEST_COMPRESSION = 9
DEFAULT_COMPRESSION = -1

MAX_WBITS = 15


def self.crc32(*args)
Truffle::Zlib.crc32(*args)
end
Expand Down

0 comments on commit 4fb5c0f

Please sign in to comment.