Skip to content

Commit 9711a4a

Browse files
committed
Fix the pointer's behavior on getting buffer
1 parent f5c1d42 commit 9711a4a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

data.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ int PycBuffer::getBuffer(int bytes, void* buffer)
8080
bytes = m_size - m_pos;
8181
if (bytes != 0)
8282
memcpy(buffer, (m_buffer + m_pos), bytes);
83+
m_pos += bytes;
8384
return bytes;
8485
}
8586

0 commit comments

Comments
 (0)