chromium/components/paint_preview/common/file_stream.cc

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

#include "components/paint_preview/common/file_stream.h"

#include <stdint.h>

#include <utility>

#include "base/compiler_specific.h"

namespace paint_preview {

namespace {

bool ShouldWrite(size_t current_size, size_t max_size, size_t added_size) {}

}  // namespace

// FileWStream

FileWStream::FileWStream(base::File file)
    :{}

FileWStream::FileWStream(base::File file, size_t max_size)
    :{}

// Close() is called in the destructor of |file_|.
FileWStream::~FileWStream() = default;

bool FileWStream::write(const void* buffer, size_t size) {}

void FileWStream::flush() {}

size_t FileWStream::bytesWritten() const {}

void FileWStream::Close() {}

// FileRStream

FileRStream::FileRStream(base::File file)
    :{}
FileRStream::~FileRStream() = default;

size_t FileRStream::read(void* buffer, size_t size) {}

bool FileRStream::isAtEnd() const {}

bool FileRStream::hasLength() const {}

size_t FileRStream::getLength() const {}

}  // namespace paint_preview