Go to the documentation of this file. 1 #ifndef STORAGE_FACTORY_FILE_H
2 #define STORAGE_FACTORY_FILE_H
47 void flush(
void)
override;
48 void close(
void)
override;
49 virtual void abort(
void);
67 #endif // STORAGE_FACTORY_FILE_H
virtual void open(const char *name, int flags=IOFlags::OpenRead, int perms=0666)
void flush(void) override
File * duplicate(bool copy) const
void close(void) override
void resize(IOOffset size) override
virtual IOSize readv(IOPosBuffer *into, IOSize buffers)
bool prefetch(const IOPosBuffer *what, IOSize n) override
IOSize writev(const IOBuffer *from, IOSize length) override
virtual void setAutoClose(bool closeit)
virtual void attach(IOFD fd)
static void sysopen(const char *name, int flags, int perms, IOFD &newfd, unsigned &newflags)
IOSize write(const void *from, IOSize n) override
virtual IOSize writev(const IOPosBuffer *from, IOSize buffers)
IOOffset size(void) const override
virtual IOOffset position(void) const
virtual void create(const char *name, bool exclusive=false, int perms=0666)
virtual IOFD fd(void) const
IOSize readv(IOBuffer *into, IOSize length) override
static IOFD sysduplicate(IOFD fd)
virtual IOSize write(const void *from, IOSize n, IOOffset pos)
static bool sysclose(IOFD fd, int *error=nullptr)