LLDB mainline
lldb_private::DataBufferUnowned Class Reference

#include <DataBuffer.h>

Inheritance diagram for lldb_private::DataBufferUnowned:
[legend]

Public Member Functions

 DataBufferUnowned (uint8_t *bytes, lldb::offset_t size)
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
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
const uint8_t * GetBytes () const
 Get a const pointer to the data.
llvm::ArrayRef< uint8_t > GetData () 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.

Private Attributes

uint8_t * m_bytes
 }
lldb::offset_t m_size

Detailed Description

Definition at line 126 of file DataBuffer.h.

Constructor & Destructor Documentation

◆ DataBufferUnowned()

lldb_private::DataBufferUnowned::DataBufferUnowned ( uint8_t * bytes,
lldb::offset_t size )
inline

Definition at line 128 of file DataBuffer.h.

References m_bytes, and m_size.

Member Function Documentation

◆ classof()

bool lldb_private::DataBufferUnowned::classof ( const DataBuffer * data_buffer)
inlinestatic

Definition at line 140 of file DataBuffer.h.

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

◆ GetBytesImpl()

const uint8_t * lldb_private::DataBufferUnowned::GetBytesImpl ( ) const
inlineoverridevirtual

}

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 131 of file DataBuffer.h.

References m_bytes.

◆ GetByteSize()

lldb::offset_t lldb_private::DataBufferUnowned::GetByteSize ( ) const
inlineoverridevirtual

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 132 of file DataBuffer.h.

References m_size.

◆ isA()

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

Reimplemented from lldb_private::DataBuffer.

Definition at line 137 of file DataBuffer.h.

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

Member Data Documentation

◆ ID

char DataBufferUnowned::ID
static

LLVM RTTI support.

{

Definition at line 136 of file DataBuffer.h.

Referenced by classof(), and isA().

◆ m_bytes

uint8_t* lldb_private::DataBufferUnowned::m_bytes
private

}

Definition at line 145 of file DataBuffer.h.

Referenced by DataBufferUnowned(), and GetBytesImpl().

◆ m_size

lldb::offset_t lldb_private::DataBufferUnowned::m_size
private

Definition at line 146 of file DataBuffer.h.

Referenced by DataBufferUnowned(), and GetByteSize().


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