mirror of
https://github.com/zrax/pycdc.git
synced 2026-06-23 11:34:07 +00:00
Fix the pointer's behavior on getting buffer
This commit is contained in:
parent
f5c1d4262b
commit
9711a4abe5
1 changed files with 1 additions and 0 deletions
1
data.cpp
1
data.cpp
|
|
@ -80,6 +80,7 @@ int PycBuffer::getBuffer(int bytes, void* buffer)
|
|||
bytes = m_size - m_pos;
|
||||
if (bytes != 0)
|
||||
memcpy(buffer, (m_buffer + m_pos), bytes);
|
||||
m_pos += bytes;
|
||||
return bytes;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue