#include "chrome/services/file_util/single_file_tar_reader.h"
#include <optional>
#include "base/check.h"
#include "base/numerics/safe_conversions.h"
namespace {
constexpr size_t kHeaderSize = …;
constexpr size_t kFileSizeFieldOffset = …;
constexpr size_t kFileSizeFieldLength = …;
}
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 { … }
std::optional<uint64_t> SingleFileTarReader::ReadOctalNumber(
base::span<const uint8_t> buffer) { … }