You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am reading and processing a large gzip-compressed file and want to show some progress information, preferably with ProgressMeter.jl, which has the following idiom:
seekend(io)
fileSize =position(io)
seekstart(io)
p =Progress(fileSize, 1) # minimum update interval: 1 secondwhile!eof(io)
line =readline(io)
# Here's where you do all the hard, slow workupdate!(p, position(io))
end
In the example above, io would come from a GzipDecompressorStream. But
julia>position(io)
ERROR: MethodError: no method matching position(::TranscodingStreams.TranscodingStream{CodecZlib.GzipDecompressor,IOStream})
I understand that the position may not be clearly defined because of buffering, but since seekend and seekstart are supported, is it possible to get eg the position of the original stream?
The text was updated successfully, but these errors were encountered:
I am reading and processing a large gzip-compressed file and want to show some progress information, preferably with ProgressMeter.jl, which has the following idiom:
In the example above,
io
would come from aGzipDecompressorStream
. ButI understand that the position may not be clearly defined because of buffering, but since
seekend
andseekstart
are supported, is it possible to get eg the position of the original stream?The text was updated successfully, but these errors were encountered: