Esempio n. 1
0
Cvirtual_binary Cbvalue::read() const
{
	Cvirtual_binary d;
	int cb_d = read(d.write_start(pre_read()));
	assert(cb_d == d.size());
	return d;
}
Esempio n. 2
0
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;
}
Esempio n. 3
0
File: bvalue.cpp Progetto: 4play/xbt
shared_data Cbvalue::read() const
{
	shared_data d(pre_read());
  BOOST_VERIFY(read(d.data()) == d.size());
	return d;
}