9#ifndef LLDB_UTILITY_DATABUFFERLLVM_H
10#define LLDB_UTILITY_DATABUFFERLLVM_H
19class WritableMemoryBuffer;
37 bool isA(
const void *ClassID)
const override {
41 return data_buffer->
isA(&
ID);
50 std::unique_ptr<llvm::MemoryBuffer>
Buffer;
63 bool isA(
const void *ClassID)
const override {
67 return data_buffer->
isA(&
ID);
74 std::unique_ptr<llvm::WritableMemoryBuffer>
Buffer);
77 std::unique_ptr<llvm::WritableMemoryBuffer>
Buffer;
lldb::offset_t GetByteSize() const override
Get the number of bytes in the data buffer.
~DataBufferLLVM() override
std::unique_ptr< llvm::MemoryBuffer > Buffer
static char ID
LLVM RTTI support.
bool isA(const void *ClassID) const override
static bool classof(const DataBuffer *data_buffer)
const uint8_t * GetBytesImpl() const override
}
A pure virtual protocol class for abstracted read only data buffers.
virtual bool isA(const void *ClassID) const
~WritableDataBufferLLVM() override
const uint8_t * GetBytesImpl() const override
}
lldb::offset_t GetByteSize() const override
Get the number of bytes in the data buffer.
static char ID
LLVM RTTI support.
std::unique_ptr< llvm::WritableMemoryBuffer > Buffer
static bool classof(const DataBuffer *data_buffer)
bool isA(const void *ClassID) const override
bool isA(const void *ClassID) const override
A class that represents a running process on the host machine.