1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 03:28:20 +02:00

Trailing whitespace trimming

This commit is contained in:
Brian Fiete 2022-07-26 13:27:03 -04:00
parent 06425735d9
commit 7f328385db
88 changed files with 9577 additions and 9850 deletions

View file

@ -5,7 +5,7 @@
USING_NS_BF;
DbgModuleMemoryCache::DbgModuleMemoryCache(uintptr addr, int size)
{
{
mAddr = addr;
mSize = size;
@ -27,7 +27,7 @@ DbgModuleMemoryCache::DbgModuleMemoryCache(uintptr addr, int size)
// mBlocks = new uint8*[1];
// mFlags = new DbgMemoryFlags[1];
// mSize = size;
//
//
// if (makeCopy)
// {
// uint8* dataCopy = new uint8[size];
@ -40,8 +40,8 @@ DbgModuleMemoryCache::DbgModuleMemoryCache(uintptr addr, int size)
// else
// {
// mBlocks[0] = data;
// }
//
// }
//
// mOwns = makeCopy;
// mBlockCount = 1;
// }
@ -75,7 +75,7 @@ DbgMemoryFlags DbgModuleMemoryCache::Read(uintptr addr, uint8* data, int size)
int relAddr = (int)(addr - mAddr);
int blockIdx = relAddr / mBlockSize;
int curOffset = relAddr % mBlockSize;
while (sizeLeft > 0)
{
uint8* block = mBlocks[blockIdx];
@ -98,7 +98,7 @@ DbgMemoryFlags DbgModuleMemoryCache::Read(uintptr addr, uint8* data, int size)
}
sizeLeft -= readSize;
curOffset = 0;
blockIdx++;
blockIdx++;
}
return flags;
@ -114,4 +114,4 @@ void DbgModuleMemoryCache::ReportMemory(MemReporter * memReporter)
totalMemory += mBlockSize;
}
memReporter->Add(totalMemory);
}
}