Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::AwaitFileSystemOperationAwaiter Struct Reference

Awaiter for selected AsyncFileSystemOperation path operations. More...

#include <Await.h>

Public Member Functions

 AwaitFileSystemOperationAwaiter (AwaitEventLoop &await, ThreadPool &threadPool, AwaitFileSystemOperationType operation, StringSpan path, StringSpan otherPath=StringSpan(), FileOpen mode=FileOpen(), FileDescriptor *outFile=nullptr, FileSystemCopyFlags copyFlags=FileSystemCopyFlags())
 
 AwaitFileSystemOperationAwaiter (AwaitEventLoop &await, ThreadPool &threadPool, AwaitFileSystemOperationType operation, FileDescriptor &file)
 
 AwaitFileSystemOperationAwaiter (AwaitEventLoop &await, ThreadPool &threadPool, AwaitFileSystemOperationType operation, FileDescriptor &file, Span< char > buffer, AwaitFileReadResult &outResult, uint64_t offset)
 
 AwaitFileSystemOperationAwaiter (AwaitEventLoop &await, ThreadPool &threadPool, AwaitFileSystemOperationType operation, FileDescriptor &file, Span< const char > data, AwaitFileWriteResult *outResult, uint64_t offset)
 
bool await_ready () const
 
bool await_suspend (AwaitTask::Handle continuation)
 
Result await_resume ()
 

Public Attributes

AwaitEventLoopawait
 
ThreadPoolthreadPool
 
AwaitFileSystemOperationType operation
 
StringSpan path
 
StringSpan otherPath
 
FileOpen mode
 
FileDescriptoroutFile = nullptr
 
FileDescriptorfileToClose = nullptr
 
FileDescriptorfileToUse = nullptr
 
Span< char > readBuffer
 
Span< const char > writeBuffer
 
AwaitFileReadResultoutReadResult = nullptr
 
AwaitFileWriteResultoutWriteResult = nullptr
 
uint64_t offset = 0
 
FileSystemCopyFlags copyFlags
 
AsyncFileSystemOperation request
 
Result operationResult = Result(true)
 

Detailed Description

Awaiter for selected AsyncFileSystemOperation path operations.


The documentation for this struct was generated from the following file: