40 : m_sv(
std::move(sv)), m_bufferName(
"<in-memory object>") {
41 Init(this->m_sv.
begin(), this->m_sv.end());
47 : m_sv(
std::move(sv)), m_bufferName(name) {
48 Init(this->m_sv.
begin(), this->m_sv.end());
60 std::string m_bufferName;
This file defines the SmallVector class.
This interface provides simple read-only access to a block of memory, and provides simple methods for...
Definition: MemoryBuffer.h:45
BufferKind
The kind of memory backing used to support the MemoryBuffer.
Definition: MemoryBuffer.h:120
@ MemoryBuffer_Malloc
Definition: MemoryBuffer.h:120
void Init(const uint8_t *bufStart, const uint8_t *bufEnd)
SmallVector-backed MemoryBuffer instance.
Definition: SmallVectorMemoryBuffer.h:35
SmallVectorMemoryBuffer(SmallVectorImpl< uint8_t > &&sv)
Construct an SmallVectorMemoryBuffer from the given SmallVector r-value.
Definition: SmallVectorMemoryBuffer.h:39
std::string_view GetBufferIdentifier() const override
Return an identifier for this buffer, typically the filename it was read from.
Definition: SmallVectorMemoryBuffer.h:54
BufferKind GetBufferKind() const override
Return information on the memory mechanism used to support the MemoryBuffer.
Definition: SmallVectorMemoryBuffer.h:56
~SmallVectorMemoryBuffer() override
SmallVectorMemoryBuffer(SmallVectorImpl< uint8_t > &&sv, std::string_view name)
Construct a named SmallVectorMemoryBuffer from the given SmallVector r-value and StringRef.
Definition: SmallVectorMemoryBuffer.h:46
iterator begin()
Definition: SmallVector.h:252
basic_string_view< char > string_view
Definition: core.h:520
Definition: BFloat16.h:88
Definition: AprilTagFieldLayout.h:18