mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-13 21:31:53 +00:00
Changed the changed memset method to setBytes, which I like better
svn-id: r20756
This commit is contained in:
parent
f2791f346b
commit
441d0a89cc
@ -66,7 +66,7 @@ void MemoryBlock::empty() {
|
||||
::memset(_data, 0, _size);
|
||||
}
|
||||
|
||||
void MemoryBlock::memorySet(int c, size_t startIndex, size_t num) {
|
||||
void MemoryBlock::setBytes(int c, size_t startIndex, size_t num) {
|
||||
byte *p = _data + startIndex;
|
||||
::memset(p, c, num);
|
||||
}
|
||||
|
@ -42,7 +42,7 @@ public:
|
||||
uint32 size() { return _size; }
|
||||
|
||||
void empty();
|
||||
void memorySet(int c, size_t startIndex, size_t num);
|
||||
void setBytes(int c, size_t startIndex, size_t num);
|
||||
void copyFrom(MemoryBlock *src);
|
||||
void copyFrom(MemoryBlock *src, uint32 srcPos, uint32 destPos, uint32 srcLen);
|
||||
void copyFrom(const byte *src, uint32 srcPos, uint32 destPos, uint32 srcLen);
|
||||
|
Loading…
Reference in New Issue
Block a user