[*] Loop should always enter alertable mode

[*] More AuList<AuUInt8> -> AuByteBuffer
This commit is contained in:
Reece Wilson 2022-01-20 17:45:52 +00:00
parent 81bfa7fba6
commit 0510ee20ae
7 changed files with 8 additions and 7 deletions

View File

@ -24,7 +24,7 @@ namespace Aurora::IO::FS
AUKN_SYM bool WriteFile(const AuString &path, const void *data, AuUInt length);
AUKN_SYM bool WriteString(const AuString &path, const AuString &str);
AUKN_SYM bool ReadFile(const AuString &path, AuList<uint8_t> &buffer);
AUKN_SYM bool ReadFile(const AuString &path, Memory::ByteBuffer &buffer);
AUKN_SYM bool ReadString(const AuString &path, AuString &buffer);
AUKN_SYM bool FileExists(const AuString &path);
@ -37,6 +37,7 @@ namespace Aurora::IO::FS
AUKN_SYM bool Relink(const AuString &src, const AuString &dest);
AUKN_SYM bool Copy(const AuString &src, const AuString &dest);
}
#include "IFileStream.hpp"

View File

@ -94,7 +94,7 @@ namespace Aurora::Crypto::RSA
return true;
}
bool PrivateRSA::Decrypt(const Memory::MemoryViewRead &payload,
bool PrivateRSA::Decrypt(const AuMemoryViewRead &payload,
EPaddingType type,
AuByteBuffer &out)
{

View File

@ -46,7 +46,7 @@ namespace Aurora::IO::FS
return bytesWritten == length;
}
AUKN_SYM bool ReadFile(const AuString &path, Memory::ByteBuffer &buffer)
AUKN_SYM bool ReadFile(const AuString &path, AuByteBuffer &buffer)
{
auto file = fopen(NormalizePathRet(path).c_str(), "rb");
if (!file)

View File

@ -95,7 +95,7 @@ namespace Aurora::IO::FS
return status;
}
AUKN_SYM bool ReadFile(const AuString &path, AuList<uint8_t> &buffer)
AUKN_SYM bool ReadFile(const AuString &path, AuByteBuffer &buffer)
{
std::wstring win32Path;
LARGE_INTEGER length;

View File

@ -212,7 +212,7 @@ namespace Aurora::IO::FS
AUKN_SYM bool ReadString(const AuString &path, AuString &buffer)
{
AuList<uint8_t> fileBuffer;
AuByteBuffer fileBuffer;
if (!ReadFile(path, fileBuffer))
{

View File

@ -130,7 +130,7 @@ namespace Aurora::IO::FS
return true;
}
bool WinFileStream::Write(const Memory::MemoryViewStreamRead & parameters)
bool WinFileStream::Write(const Memory::MemoryViewStreamRead &parameters)
{
if (handle_ == INVALID_HANDLE_VALUE)
{

View File

@ -57,7 +57,7 @@ namespace Aurora::Loop
DWORD ret;
if (isWinLoop)
{
ret = ::MsgWaitForMultipleObjectsEx(handleArray.size(), handleArray.data(), timeout ? timeout : INFINITE, QS_ALLPOSTMESSAGE | QS_ALLINPUT | QS_ALLEVENTS, MWMO_INPUTAVAILABLE);
ret = ::MsgWaitForMultipleObjectsEx(handleArray.size(), handleArray.data(), timeout ? timeout : INFINITE, QS_ALLPOSTMESSAGE | QS_ALLINPUT | QS_ALLEVENTS, MWMO_INPUTAVAILABLE | MWMO_ALERTABLE);
}
else
{