Closed nhz2 closed 6 months ago
On master
julia> using TranscodingStreams julia> stream = NoopStream(IOBuffer("foobar")); julia> mark(stream) 0 julia> read(stream, String) "foobar" julia> TranscodingStreams.unread(stream, b"bar") julia> reset(stream) -3 julia> read(stream, String) "foobarbar"
With this PR:
julia> using TranscodingStreams julia> stream = NoopStream(IOBuffer("foobar")); julia> mark(stream) 0 julia> read(stream, String) "foobar" julia> TranscodingStreams.unread(stream, b"bar") julia> reset(stream) 0 julia> read(stream, String) "foobar"
On master
With this PR: