hle_ipc: Add helper functions for reading and writing buffers.

This commit is contained in:
bunnei 2018-02-13 21:41:20 -05:00
parent 4f8ee5e456
commit 1ce6fff064
3 changed files with 55 additions and 0 deletions

View file

@ -91,6 +91,10 @@ struct BufferDescriptorX {
address |= static_cast<VAddr>(address_bits_36_38) << 36;
return address;
}
u64 Size() const {
return static_cast<u64>(size);
}
};
static_assert(sizeof(BufferDescriptorX) == 8, "BufferDescriptorX size is incorrect");