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
codec.SeekingDecoder calls a codec's SeekingDecoder function with a *brCloser.
This struct implements io.Reader via a bufio.Reader, but also exposes the Seek method of the underlying Reader, so calls to Read after calls to Seek return wrong data.
Also, a codec's Decoder function is called with a struct that can be type asserted to an io.Seeker, but it's Seek method always panics, which is not technically a bug, but very inconvenient with the way my oggvorbis package works.
The text was updated successfully, but these errors were encountered:
codec.SeekingDecoder
calls a codec'sSeekingDecoder
function with a*brCloser
.This struct implements
io.Reader
via abufio.Reader
, but also exposes theSeek
method of the underlying Reader, so calls toRead
after calls toSeek
return wrong data.Also, a codec's
Decoder
function is called with a struct that can be type asserted to anio.Seeker
, but it'sSeek
method always panics, which is not technically a bug, but very inconvenient with the way my oggvorbis package works.The text was updated successfully, but these errors were encountered: