[*] Loop should always enter alertable mode
[*] More AuList<AuUInt8> -> AuByteBuffer
This commit is contained in:
parent
81bfa7fba6
commit
0510ee20ae
@ -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"
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -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))
|
||||
{
|
||||
|
@ -130,7 +130,7 @@ namespace Aurora::IO::FS
|
||||
return true;
|
||||
}
|
||||
|
||||
bool WinFileStream::Write(const Memory::MemoryViewStreamRead & parameters)
|
||||
bool WinFileStream::Write(const Memory::MemoryViewStreamRead ¶meters)
|
||||
{
|
||||
if (handle_ == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user