LLDB mainline
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
lldb_private::DataBufferLLVM Class Reference

#include <DataBufferLLVM.h>

Inheritance diagram for lldb_private::DataBufferLLVM:
Inheritance graph
[legend]

Public Member Functions

 ~DataBufferLLVM () override
 
const uint8_t * GetBytesImpl () const override
 }
 
lldb::offset_t GetByteSize () const override
 Get the number of bytes in the data buffer.
 
bool isA (const void *ClassID) const override
 
 DataBufferLLVM (std::unique_ptr< llvm::MemoryBuffer > Buffer)
 }
 
- Public Member Functions inherited from lldb_private::DataBuffer
virtual ~DataBuffer ()=default
 
virtual lldb::offset_t GetByteSize () const =0
 Get the number of bytes in the data buffer.
 
const uint8_t * GetBytes () const
 Get a const pointer to the data.
 
llvm::ArrayRef< uint8_t > GetData () const
 
virtual bool isA (const void *ClassID) const
 

Static Public Member Functions

static bool classof (const DataBuffer *data_buffer)
 
- Static Public Member Functions inherited from lldb_private::DataBuffer
static bool classof (const DataBuffer *data_buffer)
 

Static Public Attributes

static char ID
 LLVM RTTI support.
 
- Static Public Attributes inherited from lldb_private::DataBuffer
static char ID
 LLVM RTTI support.
 

Protected Attributes

std::unique_ptr< llvm::MemoryBuffer > Buffer
 

Additional Inherited Members

virtual const uint8_t * GetBytesImpl () const =0
 }
 

Detailed Description

Definition at line 27 of file DataBufferLLVM.h.

Constructor & Destructor Documentation

◆ ~DataBufferLLVM()

DataBufferLLVM::~DataBufferLLVM ( )
overridedefault

◆ DataBufferLLVM()

DataBufferLLVM::DataBufferLLVM ( std::unique_ptr< llvm::MemoryBuffer >  Buffer)
explicit

}

Construct a DataBufferLLVM from Buffer. Buffer must be a valid pointer.

Definition at line 17 of file DataBufferLLVM.cpp.

References Buffer.

Member Function Documentation

◆ classof()

static bool lldb_private::DataBufferLLVM::classof ( const DataBuffer data_buffer)
inlinestatic

Definition at line 40 of file DataBufferLLVM.h.

References ID, and lldb_private::DataBuffer::isA().

◆ GetBytesImpl()

const uint8_t * DataBufferLLVM::GetBytesImpl ( ) const
overridevirtual

}

Get a const pointer to the data.

Returns
A const pointer to the bytes owned by this object, or NULL if the object contains no bytes.

Implements lldb_private::DataBuffer.

Definition at line 25 of file DataBufferLLVM.cpp.

References Buffer.

◆ GetByteSize()

lldb::offset_t DataBufferLLVM::GetByteSize ( ) const
overridevirtual

Get the number of bytes in the data buffer.

Returns
The number of bytes this object currently contains.

Implements lldb_private::DataBuffer.

Definition at line 29 of file DataBufferLLVM.cpp.

References Buffer.

◆ isA()

bool lldb_private::DataBufferLLVM::isA ( const void *  ClassID) const
inlineoverridevirtual

Reimplemented from lldb_private::DataBuffer.

Definition at line 37 of file DataBufferLLVM.h.

References ID, and lldb_private::DataBuffer::isA().

Member Data Documentation

◆ Buffer

std::unique_ptr<llvm::MemoryBuffer> lldb_private::DataBufferLLVM::Buffer
protected

Definition at line 50 of file DataBufferLLVM.h.

Referenced by DataBufferLLVM(), GetBytesImpl(), and GetByteSize().

◆ ID

char DataBufferLLVM::ID
static

LLVM RTTI support.

{

Definition at line 36 of file DataBufferLLVM.h.

Referenced by classof(), and isA().


The documentation for this class was generated from the following files: