AuroraRuntime/Include/Aurora/IO/FS/Async.hpp

24 lines
864 B
C++
Raw Normal View History

2021-09-06 10:58:08 +00:00
/***
Copyright (C) 2021 J Reece Wilson (a/k/a "Reece"). All rights reserved.
File: AFIO.hpp
Date: 2021-8-21
Author: Reece
***/
#pragma once
namespace Aurora::IO::FS
2021-09-06 10:58:08 +00:00
{
2022-08-20 06:53:48 +00:00
AUKN_SHARED_API(OpenAsync, IAsyncFileStream,
const AuString &path,
EFileOpenMode openMode,
bool bDirectIO = true, // true disables buffering under Win32
// true enables non-blocking ticks under Linux aio by bypassing the kernels cache
2022-08-20 06:53:48 +00:00
EFileAdvisoryLockLevel lock = EFileAdvisoryLockLevel::eNoSafety);
2023-07-29 07:02:47 +00:00
#if defined(AUX_FSAOPEX)
AUKN_SYM AuSPtr<IAsyncTransaction> OpenDirectIOAsyncFileStreamFromHandle(AuSPtr<IIOHandle> pIOHandle);
AUKN_SYM AuSPtr<IAsyncTransaction> OpenBufferedAsyncFileStreamFromHandle(AuSPtr<IIOHandle> pIOHandle);
#endif
2021-09-06 10:58:08 +00:00
}