Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::AsyncFileSend::Result Struct Reference
Inheritance diagram for SC::AsyncFileSend::Result:
SC::AsyncResultOf< AsyncFileSend, CompletionData > SC::AsyncResult

Public Member Functions

size_t getBytesTransferred () const
 Get the number of bytes transferred.
 
bool usedZeroCopy () const
 Check if zero-copy was used for this transfer.
 
bool isComplete () const
 Check if the entire requested range was sent.
 
- Public Member Functions inherited from SC::AsyncResultOf< AsyncFileSend, CompletionData >
AsyncFileSendgetAsync ()
 
const AsyncFileSendgetAsync () const
 
 AsyncResult (AsyncEventLoop &eventLoop, AsyncRequest &request, SC::Result &res, bool *hasBeenReactivated=nullptr)
 Constructs an async result from a request and a result.
 
- Public Member Functions inherited from SC::AsyncResult
 AsyncResult (AsyncEventLoop &eventLoop, AsyncRequest &request, SC::Result &res, bool *hasBeenReactivated=nullptr)
 Constructs an async result from a request and a result.
 
void reactivateRequest (bool shouldBeReactivated)
 Ask the event loop to re-activate this request after it was already completed.
 
const SC::ResultisValid () const
 Check if the returnCode of this result is valid.
 

Additional Inherited Members

- Public Attributes inherited from SC::AsyncResultOf< AsyncFileSend, CompletionData >
CompletionData completionData
 
int32_t eventIndex
 
- Public Attributes inherited from SC::AsyncResult
AsyncEventLoopeventLoop
 
AsyncRequestasync
 
- Protected Attributes inherited from SC::AsyncResult
bool shouldCallCallback = true
 
bool * hasBeenReactivated = nullptr
 
SC::ResultreturnCode
 

Member Function Documentation

◆ getBytesTransferred()

size_t SC::AsyncFileSend::Result::getBytesTransferred ( ) const
inlinenodiscard

Get the number of bytes transferred.

◆ isComplete()

bool SC::AsyncFileSend::Result::isComplete ( ) const
inlinenodiscard

Check if the entire requested range was sent.

◆ usedZeroCopy()

bool SC::AsyncFileSend::Result::usedZeroCopy ( ) const
inlinenodiscard

Check if zero-copy was used for this transfer.


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