radare2/libr/io
pancake 01fa57d832 * Merge old w32 build fix
* Add 'c' in '?' help message
* Import edu's RList-ification of RSearch patch
* Deprecate r_search_kw_list() method
* Fix build of r_socket_to_string() method on w32
2010-08-08 19:03:51 +02:00
..
p * Merge old w32 build fix 2010-08-08 19:03:51 +02:00
t * Fix build 2010-07-23 12:19:39 +02:00
cache.c * Mental note: %lld/%llx does not exist on windows 2010-04-14 13:02:23 +02:00
desc.c * some more renaming 2010-05-27 00:57:25 +02:00
io.c * Fix debug regs, memory read in w32 debugger 2010-06-28 14:12:34 +02:00
Makefile * Merge old w32 build fix 2010-08-08 19:03:51 +02:00
map.c * Mental note: %lld/%llx does not exist on windows 2010-04-14 13:02:23 +02:00
plugin.c * Fix bug with static plugins 2010-05-28 02:44:51 +02:00
README * Rename {r_*_handle_t, R*Handle} to {r_*_plugin_t, R*Plugin} 2010-05-26 01:42:22 +02:00
section.c * Fix segfault parsing imports in mach-o 2010-07-11 13:15:18 +02:00
undo.c * Check 'hg' before starting to build.sh 2010-07-13 01:00:36 +02:00
undo.h * Change the name of some types 2009-07-08 13:49:55 +02:00

R_IO
====

IO       - manages basic IO
DESC     - file descriptor (stores seek, io_handler, ..)
HANDLE   - determines io backend by io plugins
SECTION  - allows virtual base addressing over the IO
MAP      - allows virtual maps at random address

// TODO:
  - Can share storage
UNDO     - records all write ops allowing undo, redo, reset operations
  r_io_undo_*
CACHE    - caches write operations to emulate fake reads
  r_io_cache_*

-------------------------------------------

NOTES: each plugin handle must provide a 'optimal' read size.. or io must be configured to this

var io = new Radare.Io();
int fd = io.open("/bin/ls");

foreach (Io.Plugin handle in io.handle_list()) {
   stdout.printf(" %s\n", handle.name);
}