chromium/chrome/services/file_util/single_file_tar_reader.cc

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

#include "chrome/services/file_util/single_file_tar_reader.h"

#include <optional>

#include "base/check.h"
#include "base/numerics/safe_conversions.h"

namespace {
// https://www.gnu.org/software/tar/manual/html_node/Standard.html
constexpr size_t kHeaderSize =;
constexpr size_t kFileSizeFieldOffset =;
constexpr size_t kFileSizeFieldLength =;
}  // namespace

SingleFileTarReader::SingleFileTarReader() = default;
SingleFileTarReader::~SingleFileTarReader() = default;

bool SingleFileTarReader::ExtractChunk(base::span<const uint8_t> src_buffer,
                                       base::span<const uint8_t>& dst_buffer) {}

bool SingleFileTarReader::IsComplete() const {}

// static
std::optional<uint64_t> SingleFileTarReader::ReadOctalNumber(
    base::span<const uint8_t> buffer) {}