Description

Discard skips the next n bytes, returning the number of bytes discarded.

If Discard skips fewer than n bytes, it also returns an error. If 0 <= n <= b.Buffered(), Discard is guaranteed to succeed without reading from the underlying io.Reader.

Discard is referenced in 66 repositories

github.com/golang/go github.com/nekolunar/http2 github.com/unidoc/unidoc

...