9#ifndef LLDB_UTILITY_DATABUFFERHEAP_H
10#define LLDB_UTILITY_DATABUFFERHEAP_H
14#include "llvm/ADT/StringRef.h"
102 void AppendData(
const void *src, uint64_t src_len);
109 bool isA(
const void *ClassID)
const override {
113 return data_buffer->
isA(&
ID);
A subclass of DataBuffer that stores a data buffer on the heap.
lldb::offset_t GetByteSize() const override
Get the number of bytes in the data buffer.
lldb::offset_t SetByteSize(lldb::offset_t byte_size)
Set the number of bytes in the data buffer.
DataBufferHeap()
Default constructor.
void CopyData(llvm::StringRef src)
void AppendData(const void *src, uint64_t src_len)
void CopyData(const void *src, lldb::offset_t src_len)
Makes a copy of the src_len bytes in src.
buffer_t m_data
The heap based buffer where data is stored.
static char ID
LLVM RTTI support.
~DataBufferHeap() override
Destructor.
static bool classof(const DataBuffer *data_buffer)
std::vector< uint8_t > buffer_t
}
const uint8_t * GetBytesImpl() const override
Get a const pointer to the data.
bool isA(const void *ClassID) const override
A pure virtual protocol class for abstracted read only data buffers.
virtual bool isA(const void *ClassID) const
bool isA(const void *ClassID) const override
A class that represents a running process on the host machine.