ReadSeeker interface #1064
Closed
TuSKan
started this conversation in
Ideas/Features
Replies: 1 comment
-
No. You cannot seek deflate streams as there are no re-sync points. You can check out [bgzf](https://pkg.go.dev/github.com/biogo/hts/bgzf](https://pkg.go.dev/github.com/biogo/hts/bgzf) which does gzip with indexed resync points where the deflated stream starts from scratch. I haven't checked it out in a while - maybe try replacing the stdlib flate. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Do you think is possible to have a ReadSeeker interface for deflate and others compression methods?
go func NewReadSeeker(r io.ReadSeeker) io.ReadSeekCloser
Beta Was this translation helpful? Give feedback.
All reactions