chromium/third_party/pdfium/core/fxcrt/cfx_fileaccess_posix.cpp

// Copyright 2014 The PDFium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com

#include "core/fxcrt/cfx_fileaccess_posix.h"

#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>

#include <memory>

#include "core/fxcrt/fx_stream.h"
#include "core/fxcrt/numerics/safe_conversions.h"

#ifndef O_BINARY
#define O_BINARY
#endif  // O_BINARY

#ifndef O_LARGEFILE
#define O_LARGEFILE
#endif  // O_LARGEFILE

// static
std::unique_ptr<FileAccessIface> FileAccessIface::Create() {}

CFX_FileAccess_Posix::CFX_FileAccess_Posix() :{}

CFX_FileAccess_Posix::~CFX_FileAccess_Posix() {}

bool CFX_FileAccess_Posix::Open(ByteStringView fileName) {}

void CFX_FileAccess_Posix::Close() {}

FX_FILESIZE CFX_FileAccess_Posix::GetSize() const {}

FX_FILESIZE CFX_FileAccess_Posix::GetPosition() const {}

FX_FILESIZE CFX_FileAccess_Posix::SetPosition(FX_FILESIZE pos) {}

size_t CFX_FileAccess_Posix::Read(pdfium::span<uint8_t> buffer) {}

size_t CFX_FileAccess_Posix::Write(pdfium::span<const uint8_t> buffer) {}

size_t CFX_FileAccess_Posix::ReadPos(pdfium::span<uint8_t> buffer,
                                     FX_FILESIZE pos) {}

bool CFX_FileAccess_Posix::Flush() {}

bool CFX_FileAccess_Posix::Truncate(FX_FILESIZE szFile) {}