mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 05:21:25 +12:00
rsx/util: Support basic array merge
This commit is contained in:
parent
3a65359d59
commit
bb1c0a5eee
2 changed files with 32 additions and 0 deletions
|
@ -285,6 +285,13 @@ namespace rsx
|
|||
return pos;
|
||||
}
|
||||
|
||||
void operator += (const rsx::simple_array<Ty>& that)
|
||||
{
|
||||
const auto old_size = _size;
|
||||
resize(_size + that._size);
|
||||
std::memcpy(data() + old_size, that.data(), that.size_bytes());
|
||||
}
|
||||
|
||||
void clear()
|
||||
{
|
||||
_size = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue