mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-25 07:15:19 +00:00
Make r_bin_load_io_at_offset_as static, in order to reduce public RBin api
This commit is contained in:
parent
2d2b7c9859
commit
5c380693ab
@ -32,6 +32,8 @@ static RBinPlugin *bin_static_plugins[] = { R_BIN_STATIC_PLUGINS, NULL };
|
||||
static RBinXtrPlugin *bin_xtr_static_plugins[] = { R_BIN_XTR_STATIC_PLUGINS, NULL };
|
||||
static RBinLdrPlugin *bin_ldr_static_plugins[] = { R_BIN_LDR_STATIC_PLUGINS, NULL };
|
||||
|
||||
static bool r_bin_load_io_at_offset_as(RBin *bin, int fd, ut64 baseaddr, ut64 loadaddr, int xtr_idx, ut64 offset, const char *name);
|
||||
|
||||
static int getoffset(RBin *bin, int type, int idx) {
|
||||
RBinFile *a = r_bin_cur (bin);
|
||||
RBinPlugin *plugin = r_bin_file_cur_plugin (a);
|
||||
@ -493,7 +495,7 @@ R_API int r_bin_load_io_at_offset_as_sz(RBin *bin, int fd, ut64 baseaddr,
|
||||
return binfile? r_bin_file_set_cur_binfile (bin, binfile): false;
|
||||
}
|
||||
|
||||
R_API bool r_bin_load_io_at_offset_as(RBin *bin, int fd, ut64 baseaddr,
|
||||
static bool r_bin_load_io_at_offset_as(RBin *bin, int fd, ut64 baseaddr,
|
||||
ut64 loadaddr, int xtr_idx, ut64 offset, const char *name) {
|
||||
// adding file_sz to help reduce the performance impact on the system
|
||||
// in this case the number of bytes read will be limited to 2MB
|
||||
|
Loading…
x
Reference in New Issue
Block a user