1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-07-04 23:36:00 +02:00

Minor IDE changes

This commit is contained in:
Brian Fiete 2019-09-27 13:03:47 -07:00
parent be3c968e2b
commit 2ea5d31c37
15 changed files with 373 additions and 87 deletions

View file

@ -1380,7 +1380,7 @@ void HashContext::Mixin(const void* data, int size)
if (mDbgViz)
{
int findIdx = 0x1BCF;
int findIdx = 0x2cc159;
if ((mBufOffset + mBufSize <= findIdx) && (mBufOffset + mBufSize + addBytes > findIdx))
{
NOP;
@ -1429,10 +1429,17 @@ Val128 HashContext::Finish128()
{
String filePath = StrFormat("c:\\temp\\hash%d.bin", gDbgVizIdx++);
mDbgVizStream = new FileStream();
mDbgVizStream->Open(filePath, "wb");
OutputDebugStrF("Creating dbg hash: %s\n", filePath.c_str());
if (mDbgVizStream->Open(filePath, "wb"))
{
OutputDebugStrF("Creating dbg hash: %s\n", filePath.c_str());
}
else
{
OutputDebugStrF("FAILED creating dbg hash: %s\n", filePath.c_str());
}
}
mDbgVizStream->Write(mBuf, mBufSize);
if ((mDbgVizStream != NULL) && (mDbgVizStream->IsOpen()))
mDbgVizStream->Write(mBuf, mBufSize);
}
if (mBufSize <= 16)

View file

@ -682,12 +682,16 @@ public:
intptr CompareTo(const StringImpl& strB, bool ignoreCase = false) const
{
return Compare(*this, 0, strB, 0, strB.GetLength(), ignoreCase);
if (ignoreCase)
return CompareOrdinalIgnoreCaseHelper(GetPtr(), GetLength(), strB.GetPtr(), strB.GetLength());
return CompareOrdinalHelper(GetPtr(), GetLength(), strB.GetPtr(), strB.GetLength());
}
static intptr Compare(const StringImpl& strA, const StringImpl& strB, bool ignoreCase)
{
return Compare(strA, 0, strB, 0, strB.GetLength(), ignoreCase);
{
if (ignoreCase)
return CompareOrdinalIgnoreCaseHelper(strA.GetPtr(), strA.GetLength(), strB.GetPtr(), strB.GetLength());
return CompareOrdinalHelper(strA.GetPtr(), strA.GetLength(), strB.GetPtr(), strB.GetLength());
}
static intptr Compare(const StringImpl& strA, intptr indexA, const StringImpl& strB, intptr indexB, intptr length, bool ignoreCase);