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

#include <DataBufferLLVM.h>

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

Public Member Functions

 ~WritableDataBufferLLVM () 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
 
 WritableDataBufferLLVM (std::unique_ptr< llvm::WritableMemoryBuffer > Buffer)
 }
 
- Public Member Functions inherited from lldb_private::WritableDataBuffer
 ~WritableDataBuffer () override=default
 Destructor.
 
uint8_t * GetBytes ()
 Get a pointer to the data.
 
llvm::MutableArrayRef< uint8_t > GetData ()
 
bool isA (const void *ClassID) const override
 
const uint8_t * GetBytes () const
 Get a const pointer to the data.
 
llvm::ArrayRef< uint8_t > GetData () const
 
- 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::WritableDataBuffer
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::WritableDataBuffer
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::WritableMemoryBuffer > Buffer
 

Additional Inherited Members

virtual const uint8_t * GetBytesImpl () const =0
 }
 

Detailed Description

Definition at line 53 of file DataBufferLLVM.h.

Constructor & Destructor Documentation

◆ ~WritableDataBufferLLVM()

WritableDataBufferLLVM::~WritableDataBufferLLVM ( )
overridedefault

◆ WritableDataBufferLLVM()

WritableDataBufferLLVM::WritableDataBufferLLVM ( std::unique_ptr< llvm::WritableMemoryBuffer >  Buffer)
explicit

}

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

Definition at line 33 of file DataBufferLLVM.cpp.

References Buffer.

Member Function Documentation

◆ classof()

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

Definition at line 66 of file DataBufferLLVM.h.

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

◆ GetBytesImpl()

const uint8_t * WritableDataBufferLLVM::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 42 of file DataBufferLLVM.cpp.

References Buffer.

◆ GetByteSize()

lldb::offset_t WritableDataBufferLLVM::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 46 of file DataBufferLLVM.cpp.

References Buffer.

◆ isA()

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

Reimplemented from lldb_private::WritableDataBuffer.

Definition at line 63 of file DataBufferLLVM.h.

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

Member Data Documentation

◆ Buffer

std::unique_ptr<llvm::WritableMemoryBuffer> lldb_private::WritableDataBufferLLVM::Buffer
protected

Definition at line 77 of file DataBufferLLVM.h.

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

◆ ID

char WritableDataBufferLLVM::ID
static

LLVM RTTI support.

{

Definition at line 62 of file DataBufferLLVM.h.

Referenced by classof(), and isA().


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