9#ifndef LLDB_UTILITY_DATABUFFER_H
10#define LLDB_UTILITY_DATABUFFER_H
17#include "llvm/ADT/ArrayRef.h"
66 virtual bool isA(
const void *ClassID)
const {
return ClassID == &
ID; }
68 return data_buffer->
isA(&
ID);
117 bool isA(
const void *ClassID)
const override {
121 return data_buffer->
isA(&
ID);
137 bool isA(
const void *ClassID)
const override {
141 return data_buffer->
isA(&
ID);
bool isA(const void *ClassID) const override
lldb::offset_t GetByteSize() const override
Get the number of bytes in the data buffer.
const uint8_t * GetBytesImpl() const override
}
DataBufferUnowned(uint8_t *bytes, lldb::offset_t size)
static bool classof(const DataBuffer *data_buffer)
static char ID
LLVM RTTI support.
A pure virtual protocol class for abstracted read only data buffers.
virtual ~DataBuffer()=default
const uint8_t * GetBytes() const
Get a const pointer to the data.
llvm::ArrayRef< uint8_t > GetData() const
static bool classof(const DataBuffer *data_buffer)
virtual const uint8_t * GetBytesImpl() const =0
}
virtual lldb::offset_t GetByteSize() const =0
Get the number of bytes in the data buffer.
static char ID
LLVM RTTI support.
virtual bool isA(const void *ClassID) const
static bool classof(const DataBuffer *data_buffer)
uint8_t * GetBytes()
Get a pointer to the data.
llvm::MutableArrayRef< uint8_t > GetData()
bool isA(const void *ClassID) const override
~WritableDataBuffer() override=default
Destructor.
static char ID
LLVM RTTI support.
A class that represents a running process on the host machine.