示例#1
0
u64 lv2_file::op_write(vm::ps3::cptr<void> buf, u64 size)
{
	// Copy data to intermediate buffer (avoid passing vm pointer to a native API)
	std::unique_ptr<u8[]> local_buf(new u8[size]);
	std::memcpy(local_buf.get(), buf.get_ptr(), size);
	return file.write(local_buf.get(), size);
}
示例#2
0
error_code sys_console_write(vm::ps3::cptr<char> buf, u32 len)
{
	if (g_tty)
	{
		g_tty.write(buf.get_ptr(), len);
	}

	return CELL_OK;
}