7#ifndef CORE_FXCRT_CFX_FILEACCESS_POSIX_H_
8#define CORE_FXCRT_CFX_FILEACCESS_POSIX_H_
13#include "build/build_config.h"
14#include "core/fxcrt/fileaccess_iface.h"
15#include "core/fxcrt/fx_types.h"
17#if !BUILDFLAG(IS_POSIX) && !BUILDFLAG(IS_FUCHSIA)
18#error "Included on the wrong platform"
27 bool Open(ByteStringView fileName)
override;
28 void Close()
override;
32 size_t Read(
void* pBuffer, size_t szBuffer)
override;
33 size_t Write(
const void* pBuffer, size_t szBuffer)
override;
38 bool Flush()
override;
~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