Closed aronsky closed 5 years ago
Not sure what causes the failure in Travis... :/
@aronsky see RBuffer definition: https://github.com/radare/radare2/blob/master/libr/include/r_util/r_buf.h#L11
It was on made on purpose to force everyone to use RBuffer API instead of direct dereference of its contents.
Ah, OK. SO this has nothing to do with my changes :)
After the recent updates, all the tests pass correctly. Any reason not to merge this?
None :) merged!
Could you add some more example scripts?
None :) merged!
Thanks!
Could you add some more example scripts?
In the book, for writing Python asm/anal/bin plugins?
in the examples directory
On 14 Apr 2019, at 14:11, Lev Aronsky notifications@github.com wrote:
None :) merged!
Thanks!
Could you add some more example scripts?
In the book, for writing Python asm/anal/bin plugins?
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/radare/radare2-bindings/pull/217#issuecomment-482960946, or mute the thread https://github.com/notifications/unsubscribe-auth/AA3-luDFMpMdB66jBqwWbLYcetoCnEXuks5vgxsOgaJpZM4b4cmI.
I'll be happy to add examples, but I can find the relevant directory neither in this repo, nor in the main one. I see Python examples in r2pipe, but they aren't relevant to these Python bindings, AFAIK...
Create the directory if it doesnt exist. well, if the examples relay on r2pipe should be theree, if they depend on r2lang, should be in here
On 16 Apr 2019, at 10:33, Lev Aronsky notifications@github.com wrote:
I'll be happy to add examples, but I can find the relevant directory neither in this repo, nor in the main one. I see Python examples in r2pipe, but they aren't relevant to these Python bindings, AFAIK...
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/radare/radare2-bindings/pull/217#issuecomment-483564991, or mute the thread https://github.com/notifications/unsubscribe-auth/AA3-ltumlS1fspAeLJcwTiGnJmIqi3Dfks5vhYrOgaJpZM4b4cmI.
Use a
MemoryView
in check_bytes and accesses toRBuffer->buf->buf
.Note: the function
init_pybinfile_module
was not called anywhere, and the module was unusable (the type wasn't initialized properly). I'm calling it in the initialization code of the bin plugin now.Also, the signature of py_anal was changed in the newest radare2, so I updated it (unrelated to the subject of this PR).