When decoding, unread data in the stream will be skipped if there is still unread data present.
Data will be read all at once during decoding.