chromium/third_party/webrtc/rtc_base/system/file_wrapper.cc

/*
 *  Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */

#include "rtc_base/system/file_wrapper.h"

#include <stddef.h>

#include <cerrno>
#include <cstdint>
#include <string>

#include "absl/strings/string_view.h"
#include "absl/types/optional.h"
#include "rtc_base/checks.h"
#include "rtc_base/numerics/safe_conversions.h"

#ifdef _WIN32
#include <Windows.h>
#else
#endif

#include <utility>

namespace webrtc {
namespace {
FILE* FileOpen(absl::string_view file_name_utf8, bool read_only, int* error) {}

}  // namespace

// static
FileWrapper FileWrapper::OpenReadOnly(absl::string_view file_name_utf8) {}

// static
FileWrapper FileWrapper::OpenWriteOnly(absl::string_view file_name_utf8,
                                       int* error /*=nullptr*/) {}

FileWrapper::FileWrapper(FileWrapper&& other) {}

FileWrapper& FileWrapper::operator=(FileWrapper&& other) {}

bool FileWrapper::SeekRelative(int64_t offset) {}

bool FileWrapper::SeekTo(int64_t position) {}

absl::optional<size_t> FileWrapper::FileSize() {}

bool FileWrapper::Flush() {}

size_t FileWrapper::Read(void* buf, size_t length) {}

bool FileWrapper::ReadEof() const {}

bool FileWrapper::Write(const void* buf, size_t length) {}

bool FileWrapper::Close() {}

FILE* FileWrapper::Release() {}

}  // namespace webrtc