radare2/libr/io
pancake 7a753ac0cb * strnlen helper in format/elf/elf.c is now static inline
* Some random syntax cleanups
* Fixes some warnings in r_socket on w32
2010-04-14 13:28:56 +02:00
..
p * Fix 'e foo' output 2010-04-06 14:23:12 +02:00
t * Fix 'e foo' output 2010-04-06 14:23:12 +02:00
cache.c * Implement 'wc' command to list, commit and reset cache changes 2010-03-30 23:12:19 +02:00
desc.c * Initial quick-and-dirty implementation of backtrace 2010-03-01 10:49:04 +01:00
handle.c * r_io 2010-03-19 14:01:37 +01:00
io.c * Fix bug in r_io_seek related to va 2010-04-11 13:48:16 +02:00
Makefile * Many more fixes for the mingw32 port 2010-01-15 13:02:54 +01:00
map.c * Rename MALLOC_STRUCT into R_NEW and deprecate it. 2010-03-12 13:35:10 +01:00
README * Some malloc checks in _new() class constructors 2009-09-09 00:35:00 +00:00
section.c * strnlen helper in format/elf/elf.c is now static inline 2010-04-14 13:28:56 +02:00
undo.c * Rename MALLOC_STRUCT into R_NEW and deprecate it. 2010-03-12 13:35:10 +01: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.Handle handle in io.handle_list()) {
   stdout.printf(" %s\n", handle.name);
}