The number of bytes currently available for replaying from the underlying stream
Discard bytes that have been copied from the underlying stream
Discard bytes that have been copied from the underlying stream
number of bytes to discard
Return bytes copied from the underlying stream, discarding them afterwards.
Return bytes copied from the underlying stream, discarding them afterwards. If more bytes are requested than have been copied, only copied bytes will be returned
number of bytes to return
Proxies an input stream, copying any bytes read. The number of copied bytes can be checked with
copied
, discarded withdrop
, and returned withreplay
(which will also drop the bytes).Note: this class is not thread-safe