[*] Fix stupid mental typo of 'peek' -> 'peak'
This commit is contained in:
parent
d1e13d59d0
commit
31695ae63b
@ -263,7 +263,7 @@ namespace Aurora::IO::Net
|
||||
// Atomic
|
||||
// ReadAsync(memory, false)
|
||||
// SeekAsync(-memory.outVariable)
|
||||
virtual bool PeakAsync(const Memory::MemoryViewStreamWrite &memory) = 0;
|
||||
virtual bool PeekAsync(const Memory::MemoryViewStreamWrite &memory) = 0;
|
||||
|
||||
// Attempts to seek backwards or forwards in the UDP or TCP packet
|
||||
// If you are under the callstack of a HasXXXHasData callback, you are guaranteed (bufferedReadSize - streamPosition - streamRemaining) bytes backwards
|
||||
|
@ -18,9 +18,9 @@ namespace Aurora::Memory
|
||||
* expect arbitrary stream seeks of an otherwise limited consume-once stream
|
||||
*
|
||||
* IE;
|
||||
* -> peaking a header in a datagram, or tcp stream; where instead of freeing the datagram or double
|
||||
* -> Peeking a header in a datagram, or tcp stream; where instead of freeing the datagram or double
|
||||
* buffering the network stack when required, a ring buffer is used to prevent reallocation on each frame
|
||||
* -> peaking, or seeking back after, compression read. A compression api could be fed on-Sdemand or ad hoc,
|
||||
* -> Peeking, or seeking back after, compression read. A compression api could be fed on-Sdemand or ad hoc,
|
||||
* writing to its write head pointer, while never running out of space so long as the decompressed ring
|
||||
* read head continues moving
|
||||
*
|
||||
@ -526,7 +526,7 @@ namespace Aurora::Memory
|
||||
}
|
||||
}
|
||||
|
||||
inline AuUInt Read(void *out, AuUInt requestedLength, bool peak = false)
|
||||
inline AuUInt Read(void *out, AuUInt requestedLength, bool peek = false)
|
||||
{
|
||||
AuUInt linearOverhead = 0, toWriteOverhead = 0, linearReadable = 0, toWriteReadable = 0;
|
||||
if (flagCircular)
|
||||
@ -552,7 +552,7 @@ namespace Aurora::Memory
|
||||
std::memcpy(out, readPtr, linearOverhead);
|
||||
}
|
||||
|
||||
if (!peak)
|
||||
if (!peek)
|
||||
{
|
||||
readPtr += linearOverhead;
|
||||
}
|
||||
@ -561,7 +561,7 @@ namespace Aurora::Memory
|
||||
{
|
||||
std::memcpy(reinterpret_cast<AuUInt8 *>(out) + linearOverhead, base, toWriteReadable);
|
||||
|
||||
if (!peak)
|
||||
if (!peek)
|
||||
{
|
||||
readPtr = base + toWriteReadable;
|
||||
}
|
||||
@ -585,7 +585,7 @@ namespace Aurora::Memory
|
||||
std::memcpy(out, readPtr, len);
|
||||
}
|
||||
|
||||
if (!peak)
|
||||
if (!peek)
|
||||
{
|
||||
readPtr += len;
|
||||
}
|
||||
|
@ -25,7 +25,7 @@ namespace Aurora::IO::FS
|
||||
static AuOptional<AuString> gSystemLibPath2;
|
||||
static AuOptional<AuString> gUserLibPath;
|
||||
static AuOptional<AuString> gUserLibPath2;
|
||||
static const AuString kUnixAppData {"/opt"};
|
||||
static const AuString kUnixAppData {"/var"};
|
||||
|
||||
AUKN_SYM bool GetSystemDomain(AuString &path)
|
||||
{
|
||||
|
@ -35,7 +35,7 @@ namespace Aurora::Parse
|
||||
return _getc(c);
|
||||
}
|
||||
|
||||
bool Peak(AuUInt8 &c)
|
||||
bool Peek(AuUInt8 &c)
|
||||
{
|
||||
if (_hasNext)
|
||||
{
|
||||
@ -111,7 +111,7 @@ namespace Aurora::Parse
|
||||
while (true)
|
||||
{
|
||||
AuUInt8 next;
|
||||
AuUInt8 peak;
|
||||
AuUInt8 peek;
|
||||
|
||||
// consume character from the stream
|
||||
if (!context.Next(next))
|
||||
@ -153,19 +153,19 @@ namespace Aurora::Parse
|
||||
continue;
|
||||
}
|
||||
|
||||
auto peakStatus = context.Peak(peak);
|
||||
auto peekStatus = context.Peek(peek);
|
||||
|
||||
bool isPeakterminating = isTerminating(peak);
|
||||
bool isPeekterminating = isTerminating(peek);
|
||||
|
||||
// check \ \n pair + is var arg
|
||||
if ((peakStatus) && (isPeakterminating) && (next == '\\') && (isvararg))
|
||||
if ((peekStatus) && (isPeekterminating) && (next == '\\') && (isvararg))
|
||||
{
|
||||
escapedNewLine = true;
|
||||
continue;
|
||||
}
|
||||
|
||||
// escape character for "'s in strings
|
||||
if ((peakStatus) && (isString) && (next == '\\') && (stringLevel) && (peak == '\"'))
|
||||
if ((peekStatus) && (isString) && (next == '\\') && (stringLevel) && (peek == '\"'))
|
||||
{
|
||||
escapedQuote = true;
|
||||
continue;
|
||||
@ -183,7 +183,7 @@ namespace Aurora::Parse
|
||||
else if (
|
||||
(next == '"') && (isString) && (stringLevel) //
|
||||
|
||||
&& (((peakStatus && (isPeakterminating || isSpace(peak))) || (!peakStatus)))) // expected to fail
|
||||
&& (((peekStatus && (isPeekterminating || isSpace(peek))) || (!peekStatus)))) // expected to fail
|
||||
{
|
||||
stringLevel = false;
|
||||
continue;
|
||||
|
@ -29,12 +29,20 @@ namespace Aurora::Processes
|
||||
|
||||
while (!gOpenerThread->Exiting())
|
||||
{
|
||||
for (const auto &open : gOpenItems)
|
||||
try
|
||||
{
|
||||
ShellExecuteW(NULL, IO::FS::DirExists(open) ? L"explore" : NULL, Locale::ConvertFromUTF8(open).c_str(), NULL, NULL, SW_SHOWNORMAL);
|
||||
for (const auto &open : gOpenItems)
|
||||
{
|
||||
ShellExecuteW(NULL, IO::FS::DirExists(open) ? L"explore" : NULL, Locale::ConvertFromUTF8(open).c_str(), NULL, NULL, SW_SHOWNORMAL);
|
||||
}
|
||||
gOpenItems.clear();
|
||||
gCondVariable->WaitForSignal();
|
||||
}
|
||||
catch (...)
|
||||
{
|
||||
Debug::PrintError();
|
||||
LogWarn("An error occurred while dispatching a ShellExecute runner frame");
|
||||
}
|
||||
gOpenItems.clear();
|
||||
gCondVariable->WaitForSignal();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user