67 bool openedOk() const noexcept {
return status.wasOk(); }
71 int64 getTotalLength()
override;
72 int read (
void*,
int)
override;
73 bool isExhausted()
override;
74 int64 getPosition()
override;
75 bool setPosition (
int64)
override;
80 void* fileHandle =
nullptr;
81 int64 currentPosition = 0;
82 Result status { Result::ok() };
85 size_t readInternal (
void*,
size_t);
Represents a local file or directory.
Represents the 'success' or 'failure' of an operation, and holds an associated error message to descr...
long long int64
A platform-independent 64-bit integer type.