1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-24 03:32:50 +01:00

MEMORY: Added AppendRawBytes, which also advances the memory pointer unlike Memory.CopyFromReal

This commit is contained in:
Michael Yu 2014-05-19 02:10:33 -07:00
parent 2834697f1f
commit 9bdb12e3da

View File

@ -795,6 +795,12 @@ public:
return this->m_addr;
}
u32 AppendRawBytes(const u8 * bytes, size_t count) {
Memory.CopyFromReal(this->m_addr, bytes, count);
this->m_addr += count;
return this->m_addr;
}
u32 Skip(const u32 offset) { return this->m_addr += offset; }
operator be_t<T>*() { return GetPtr(); }