Zherui Cao created ARROW-6640: --------------------------------- Summary: [C++]Error when BufferedInputStream Peek more than bytes buffered Key: ARROW-6640 URL: https://issues.apache.org/jira/browse/ARROW-6640 Project: Apache Arrow Issue Type: Bug Reporter: Zherui Cao Assignee: Zherui Cao
An example: BufferedInputStream:Peek(10), but only 8 buffered remaining (buffer_pos is 2 right now) it will increase the buffer size by 2. In the mean time the buffer_pos will be reset to 0, but it should remain 2. Resetting buffer_pos will cause problems. -- This message was sent by Atlassian Jira (v8.3.4#803005)