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

#include <DataBuffer.h>

Inheritance diagram for lldb_private::DataBufferUnowned:
Inheritance graph
[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
 
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.
 

Private Attributes

uint8_t * m_bytes
 }
 
lldb::offset_t m_size
 

Additional Inherited Members

virtual const uint8_t * GetBytesImpl () const =0
 }
 

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.

Member Function Documentation

◆ classof()

static 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::WritableDataBuffer.

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 GetBytesImpl().

◆ m_size

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

Definition at line 146 of file DataBuffer.h.

Referenced by GetByteSize().


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