llvm::AppendingBinaryByteStream::readLongestContiguousChunk

Read the longest contiguous chunk starting at Offset without copying.

Synopsis

Declared in <llvm/Support/BinaryByteStream.h>

virtual
Error
readLongestContiguousChunk(
    uint64_t Offset,
    ArrayRef<uint8_t>& Buffer) override;

Return Value

Error::success() on success, or an error if Offset is invalid.

Parameters

NameDescription
OffsetByte offset into the stream at which to begin reading.
BufferSet to the remaining contiguous bytes from Offset.