Cvirtual_binary Cbvalue::read() const { Cvirtual_binary d; int cb_d = read(d.write_start(pre_read())); assert(cb_d == d.size()); return d; }
static bool pre_syscall(void *drcontext, int sysnum) { switch (sysnum) { case SYS_open: pre_open(drcontext); break; case SYS_close: pre_close(drcontext); break; case SYS_read: pre_read(drcontext); break; case SYS_write: pre_write(drcontext); break; case SYS_pwrite64: pre_pwrite(drcontext); break; default: break; } return true; }
shared_data Cbvalue::read() const { shared_data d(pre_read()); BOOST_VERIFY(read(d.data()) == d.size()); return d; }