0 if the stream has been completely decoded successfully and there are no more samples
> 0 to indicate the number of bytes that were actually read from the stream.