Discard at most n available bytes or 0 if no bytes available yet
number of bytes actually discarded, could be 0