@@ -26,6 +26,9 @@ Arguments
2626---------
2727- `level`: compression level (-1..9)
2828- `windowbits`: size of history buffer (9..15)
29+
30+ !!! warning
31+ `serialize` and `deepcopy` will not work with this codec due to stored raw pointers.
2932"""
3033function GzipCompressor (;level:: Integer = Z_DEFAULT_COMPRESSION,
3134 windowbits:: Integer = Z_DEFAULT_WINDOWBITS)
@@ -43,6 +46,9 @@ const GzipCompressorStream{S} = TranscodingStream{GzipCompressor,S} where S<:IO
4346 GzipCompressorStream(stream::IO; kwargs...)
4447
4548Create a gzip compression stream (see `GzipCompressor` for `kwargs`).
49+
50+ !!! warning
51+ `serialize` and `deepcopy` will not work with this stream due to stored raw pointers.
4652"""
4753function GzipCompressorStream (stream:: IO ; kwargs... )
4854 x, y = splitkwargs (kwargs, (:level , :windowbits ))
@@ -68,6 +74,9 @@ Arguments
6874---------
6975- `level`: compression level (-1..9)
7076- `windowbits`: size of history buffer (9..15)
77+
78+ !!! warning
79+ `serialize` and `deepcopy` will not work with this codec due to stored raw pointers.
7180"""
7281function ZlibCompressor (;level:: Integer = Z_DEFAULT_COMPRESSION,
7382 windowbits:: Integer = Z_DEFAULT_WINDOWBITS)
@@ -85,6 +94,9 @@ const ZlibCompressorStream{S} = TranscodingStream{ZlibCompressor,S} where S<:IO
8594 ZlibCompressorStream(stream::IO)
8695
8796Create a zlib compression stream (see `ZlibCompressor` for `kwargs`).
97+
98+ !!! warning
99+ `serialize` and `deepcopy` will not work with this stream due to stored raw pointers.
88100"""
89101function ZlibCompressorStream (stream:: IO ; kwargs... )
90102 x, y = splitkwargs (kwargs, (:level , :windowbits ))
@@ -110,6 +122,9 @@ Arguments
110122---------
111123- `level`: compression level (-1..9)
112124- `windowbits`: size of history buffer (9..15)
125+
126+ !!! warning
127+ `serialize` and `deepcopy` will not work with this codec due to stored raw pointers.
113128"""
114129function DeflateCompressor (;level:: Integer = Z_DEFAULT_COMPRESSION,
115130 windowbits:: Integer = Z_DEFAULT_WINDOWBITS)
@@ -127,6 +142,9 @@ const DeflateCompressorStream{S} = TranscodingStream{DeflateCompressor,S} where
127142 DeflateCompressorStream(stream::IO; kwargs...)
128143
129144Create a deflate compression stream (see `DeflateCompressor` for `kwargs`).
145+
146+ !!! warning
147+ `serialize` and `deepcopy` will not work with this stream due to stored raw pointers.
130148"""
131149function DeflateCompressorStream (stream:: IO ; kwargs... )
132150 x, y = splitkwargs (kwargs, (:level , :windowbits ))
0 commit comments