Check if buffer read is complete before decoding