67 size_t bufferSizeToUse = 16384);
91 bool openedOk() const noexcept {
return status.wasOk(); }
100 void flush()
override;
101 int64 getPosition()
override;
102 bool setPosition (int64)
override;
103 bool write (
const void*,
size_t)
override;
104 bool writeRepeatedByte (uint8
byte,
size_t numTimesToRepeat)
override;
110 void* fileHandle =
nullptr;
112 int64 currentPosition = 0;
113 size_t bufferSize, bytesInBuffer = 0;
118 void flushInternal();
120 int64 setPositionInternal (int64);
121 ssize_t writeInternal (
const void*,
size_t);
const Result & getStatus() const noexcept
const File & getFile() const
bool failedToOpen() const noexcept
bool openedOk() const noexcept
static Result ok() noexcept