-
-
Notifications
You must be signed in to change notification settings - Fork 380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert rz-bin cmd call in rz-find to API #2441
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is state
used here? Also, is it really necessary to have core
?
You are right, If RzCore is not used, more code is needed to make RzBin work, which do you prefer? RzBin *bin = rz_bin_new();
RzIO *rio = rz_io_new();
rio->cb_printf = rz_cons_printf;
rz_io_bind(rio, &bin->iob);
// ..
rz_bin_free(bin);
rz_io_free(rio); |
you can just printf without rz_cons |
Co-authored-by: Riccardo Schirone <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Damn, rz_bin_dump_strings
API is really bad...
Yes. In fact I think sometimes it is more convenient to use command especially if the API is not well-designed. |
i will remove it in one of my PRs on RzPrint |
Your checklist for this pull request
Detailed description
rz-bin -qzzz
call in caseRZ_SEARCH_STRING
to internal APIRZ_SEARCH_MAGIC
RZ_SEARCH_ESIL
...
Test plan
...
Closing issues
closes #1475
...