Skip to content

Python binding handling of bytearrays#1453

Merged
aquynh merged 1 commit intocapstone-engine:masterfrom
ChrisDenton:python/bytearray
Apr 3, 2019
Merged

Python binding handling of bytearrays#1453
aquynh merged 1 commit intocapstone-engine:masterfrom
ChrisDenton:python/bytearray

Conversation

@ChrisDenton
Copy link
Copy Markdown
Contributor

@ChrisDenton ChrisDenton commented Mar 27, 2019

I'm not very familiar with the capstone code but surely it would be better to pass bytearrays by reference instead of making a copy using bytes? This can be done by passing the bytearray to from_buffer on the relevant ctype.

Pass bytearrays by reference instead of copying to bytes.
@aquynh
Copy link
Copy Markdown
Collaborator

aquynh commented Mar 28, 2019

@aquynh aquynh merged commit c8716f5 into capstone-engine:master Apr 3, 2019
@aquynh
Copy link
Copy Markdown
Collaborator

aquynh commented Apr 3, 2019

merged, thanks!

aquynh pushed a commit that referenced this pull request Apr 3, 2019
Pass bytearrays by reference instead of copying to bytes.
aquynh pushed a commit that referenced this pull request Apr 3, 2019
Pass bytearrays by reference instead of copying to bytes.
@riptl riptl mentioned this pull request Jul 22, 2022
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants