![]() |
libfilezilla
|
Holds the result of read/write operations. More...
#include <fsresult.hpp>
Public Types | |
| enum | error { none , invalid , nospace , wouldblock , other } |
| typedef uint32_t | raw_t |
Public Member Functions | |
| rwresult (error e, raw_t raw) | |
| rwresult (size_t value) | |
| operator bool () const | |
Public Attributes | ||
| error | error_ {} | |
| union { | ||
| raw_t raw_ | ||
| Undefined if error_ is none. | ||
| size_t value_ {} | ||
| Undefined if error_ is not none. | ||
| }; | ||
Holds the result of read/write operations.
On success, returns the number of bytes read/written.
The raw error code isn't always available. If available, it is the value of errno/GetLastError() when the failure occurred.