It would be nice to be able to copy a Codec like in python https://docs.python.org/3/library/zlib.html#zlib.Compress.copy This can be useful when repeating compression of data with a long common prefix like in https://github.com/JuliaIO/TranscodingStreams.jl/issues/92