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
|
|
|
|
|
2021-09-13 20:11:12 +00:00
|
|
|
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,
|
2022-08-21 02:53:50 +00:00
|
|
|
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);
|
2021-09-06 10:58:08 +00:00
|
|
|
}
|