llvm/llvm/lib/Support/BinaryStreamRef.cpp

//===- BinaryStreamRef.cpp - ----------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "llvm/Support/BinaryStreamRef.h"
#include "llvm/Support/BinaryByteStream.h"

usingnamespacellvm;

namespace {

class ArrayRefImpl : public BinaryStream {};

class MutableArrayRefImpl : public WritableBinaryStream {};
} // namespace

BinaryStreamRef::BinaryStreamRef(BinaryStream &Stream)
    :{}
BinaryStreamRef::BinaryStreamRef(BinaryStream &Stream, uint64_t Offset,
                                 std::optional<uint64_t> Length)
    :{}
BinaryStreamRef::BinaryStreamRef(ArrayRef<uint8_t> Data, endianness Endian)
    :{}
BinaryStreamRef::BinaryStreamRef(StringRef Data, endianness Endian)
    :{}

Error BinaryStreamRef::readBytes(uint64_t Offset, uint64_t Size,
                                 ArrayRef<uint8_t> &Buffer) const {}

Error BinaryStreamRef::readLongestContiguousChunk(
    uint64_t Offset, ArrayRef<uint8_t> &Buffer) const {}

WritableBinaryStreamRef::WritableBinaryStreamRef(WritableBinaryStream &Stream)
    :{}

WritableBinaryStreamRef::WritableBinaryStreamRef(WritableBinaryStream &Stream,
                                                 uint64_t Offset,
                                                 std::optional<uint64_t> Length)
    :{}

WritableBinaryStreamRef::WritableBinaryStreamRef(MutableArrayRef<uint8_t> Data,
                                                 endianness Endian)
    :{}

Error WritableBinaryStreamRef::writeBytes(uint64_t Offset,
                                          ArrayRef<uint8_t> Data) const {}

operator BinaryStreamRef()

/// For buffered streams, commits changes to the backing store.
Error WritableBinaryStreamRef::commit() {}