mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 02:51:27 +00:00
Replace MemSet with memset.
This commit is contained in:
@ -217,7 +217,7 @@ T * TBuffer<T>::Detach () {
|
||||
template<class T>
|
||||
void TBuffer<T>::Fill (uint8_t value) {
|
||||
if (m_data)
|
||||
MemSet(m_data, value, Bytes());
|
||||
memset(m_data, value, Bytes());
|
||||
}
|
||||
|
||||
//===========================================================================
|
||||
@ -610,7 +610,7 @@ T * TFArray<T,C>::Detach () {
|
||||
template<class T, class C>
|
||||
void TFArray<T,C>::Fill (uint8_t value) {
|
||||
C::Destruct(m_data, m_count);
|
||||
MemSet(m_data, value, m_count * sizeof(T));
|
||||
memset(m_data, value, m_count * sizeof(T));
|
||||
C::Construct(m_data, m_count);
|
||||
}
|
||||
|
||||
|
@ -81,7 +81,7 @@ void * CBaseSpareList::Alloc (unsigned objectSize, const char typeName[]) {
|
||||
|
||||
// initialize memory to a freaky value in debug mode
|
||||
#ifdef HS_DEBUGGING
|
||||
MemSet(object, (uint8_t) ((unsigned) object >> 4), objectSize);
|
||||
memset(object, (uint8_t) ((unsigned) object >> 4), objectSize);
|
||||
#endif
|
||||
|
||||
return object;
|
||||
@ -91,7 +91,7 @@ void * CBaseSpareList::Alloc (unsigned objectSize, const char typeName[]) {
|
||||
void CBaseSpareList::Free (void * object, unsigned objectSize) {
|
||||
// initialize memory to a freaky value in debug mode
|
||||
#ifdef HS_DEBUGGING
|
||||
MemSet(object, (uint8_t) ((unsigned) object >> 4), objectSize);
|
||||
memset(object, (uint8_t) ((unsigned) object >> 4), objectSize);
|
||||
#endif
|
||||
|
||||
// link memory block onto head of spare list
|
||||
|
Reference in New Issue
Block a user