7#ifndef CORE_FXCRT_FILEACCESS_IFACE_H_
8#define CORE_FXCRT_FILEACCESS_IFACE_H_
12#include "core/fxcrt/fx_string.h"
20 virtual bool Open(ByteStringView fileName) = 0;
26 virtual size_t Write(
const void* pBuffer, size_t szBuffer) = 0;
~CFX_FileAccess_Posix() override
size_t ReadPos(void *pBuffer, size_t szBuffer, FX_FILESIZE pos) override
size_t Write(const void *pBuffer, size_t szBuffer) override
FX_FILESIZE GetSize() const override
size_t WritePos(const void *pBuffer, size_t szBuffer, FX_FILESIZE pos) override
size_t Read(void *pBuffer, size_t szBuffer) override
FX_FILESIZE SetPosition(FX_FILESIZE pos) override
bool Open(ByteStringView fileName) override
bool Truncate(FX_FILESIZE szFile) override
FX_FILESIZE GetPosition() const override
virtual size_t WritePos(const void *pBuffer, size_t szBuffer, FX_FILESIZE pos)=0
virtual FX_FILESIZE SetPosition(FX_FILESIZE pos)=0
virtual FX_FILESIZE GetPosition() const =0
virtual size_t ReadPos(void *pBuffer, size_t szBuffer, FX_FILESIZE pos)=0
virtual bool Open(ByteStringView fileName)=0
virtual size_t Write(const void *pBuffer, size_t szBuffer)=0
virtual ~FileAccessIface()=default
virtual FX_FILESIZE GetSize() const =0
virtual size_t Read(void *pBuffer, size_t szBuffer)=0
static std::unique_ptr< FileAccessIface > Create()
virtual bool Truncate(FX_FILESIZE szFile)=0