aboutsummaryrefslogtreecommitdiffstats
path: root/erts/preloaded
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2014-01-16 12:16:39 +0100
committerBjörn Gustavsson <[email protected]>2014-01-16 12:26:05 +0100
commit1101fcb3e61634f1be92e1b9ba9fad5a11b8554a (patch)
tree2ec4ef83558ed4d7200c8bc94bdc63c6a746fe60 /erts/preloaded
parent8a147a73651713efebb9ac973f618a6d66685eca (diff)
downloadotp-1101fcb3e61634f1be92e1b9ba9fad5a11b8554a.tar.gz
otp-1101fcb3e61634f1be92e1b9ba9fad5a11b8554a.tar.bz2
otp-1101fcb3e61634f1be92e1b9ba9fad5a11b8554a.zip
Add the 'rle' zstrategy
Diffstat (limited to 'erts/preloaded')
-rw-r--r--erts/preloaded/src/zlib.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/erts/preloaded/src/zlib.erl b/erts/preloaded/src/zlib.erl
index 3d85533b80..df7b2e6198 100644
--- a/erts/preloaded/src/zlib.erl
+++ b/erts/preloaded/src/zlib.erl
@@ -47,6 +47,7 @@
%% compresssion strategy
-define(Z_FILTERED, 1).
-define(Z_HUFFMAN_ONLY, 2).
+-define(Z_RLE, 3).
-define(Z_DEFAULT_STRATEGY, 0).
%% deflate compression method
@@ -125,7 +126,7 @@
-type zmethod() :: 'deflated'.
-type zwindowbits() :: -15..-9 | 9..47.
-type zmemlevel() :: 1..9.
--type zstrategy() :: 'default' | 'filtered' | 'huffman_only'.
+-type zstrategy() :: 'default' | 'filtered' | 'huffman_only' | 'rle'.
%%------------------------------------------------------------------------
@@ -486,6 +487,7 @@ arg_level(_) -> erlang:error(badarg).
arg_strategy(filtered) -> ?Z_FILTERED;
arg_strategy(huffman_only) -> ?Z_HUFFMAN_ONLY;
+arg_strategy(rle) -> ?Z_RLE;
arg_strategy(default) -> ?Z_DEFAULT_STRATEGY;
arg_strategy(_) -> erlang:error(badarg).