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:46
BufferKind
The kind of memory backing used to support the MemoryBuffer.
Definition MemoryBuffer.h:125
@ MemoryBuffer_Malloc
Definition MemoryBuffer.h:125
void Init(const uint8_t *bufStart, const uint8_t *bufEnd)
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
Definition SmallVector.h:1212
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Definition sha1.h:30
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:283
Implement std::hash so that hash_code can be used in STL containers.
Definition PointerIntPair.h:280
Foonathan namespace.
Definition ntcore_cpp.h:26