Changed the changed memset method to setBytes, which I like better

svn-id: r20756
This commit is contained in:
Paul Gilbert 2006-02-19 04:02:01 +00:00
parent f2791f346b
commit 441d0a89cc
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);