LLDB  mainline
Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
lldb::SBData Class Reference

#include <SBData.h>

Public Member Functions

 SBData ()
 
 SBData (const SBData &rhs)
 
const SBDataoperator= (const SBData &rhs)
 
 ~SBData ()
 
uint8_t GetAddressByteSize ()
 
void SetAddressByteSize (uint8_t addr_byte_size)
 
void Clear ()
 
 operator bool () const
 
bool IsValid ()
 
size_t GetByteSize ()
 
lldb::ByteOrder GetByteOrder ()
 
void SetByteOrder (lldb::ByteOrder endian)
 
float GetFloat (lldb::SBError &error, lldb::offset_t offset)
 
double GetDouble (lldb::SBError &error, lldb::offset_t offset)
 
long double GetLongDouble (lldb::SBError &error, lldb::offset_t offset)
 
lldb::addr_t GetAddress (lldb::SBError &error, lldb::offset_t offset)
 
uint8_t GetUnsignedInt8 (lldb::SBError &error, lldb::offset_t offset)
 
uint16_t GetUnsignedInt16 (lldb::SBError &error, lldb::offset_t offset)
 
uint32_t GetUnsignedInt32 (lldb::SBError &error, lldb::offset_t offset)
 
uint64_t GetUnsignedInt64 (lldb::SBError &error, lldb::offset_t offset)
 
int8_t GetSignedInt8 (lldb::SBError &error, lldb::offset_t offset)
 
int16_t GetSignedInt16 (lldb::SBError &error, lldb::offset_t offset)
 
int32_t GetSignedInt32 (lldb::SBError &error, lldb::offset_t offset)
 
int64_t GetSignedInt64 (lldb::SBError &error, lldb::offset_t offset)
 
const char * GetString (lldb::SBError &error, lldb::offset_t offset)
 
size_t ReadRawData (lldb::SBError &error, lldb::offset_t offset, void *buf, size_t size)
 
bool GetDescription (lldb::SBStream &description, lldb::addr_t base_addr=LLDB_INVALID_ADDRESS)
 
void SetData (lldb::SBError &error, const void *buf, size_t size, lldb::ByteOrder endian, uint8_t addr_size)
 
bool Append (const SBData &rhs)
 
bool SetDataFromCString (const char *data)
 
bool SetDataFromUInt64Array (uint64_t *array, size_t array_len)
 
bool SetDataFromUInt32Array (uint32_t *array, size_t array_len)
 
bool SetDataFromSInt64Array (int64_t *array, size_t array_len)
 
bool SetDataFromSInt32Array (int32_t *array, size_t array_len)
 
bool SetDataFromDoubleArray (double *array, size_t array_len)
 

Static Public Member Functions

static lldb::SBData CreateDataFromCString (lldb::ByteOrder endian, uint32_t addr_byte_size, const char *data)
 
static lldb::SBData CreateDataFromUInt64Array (lldb::ByteOrder endian, uint32_t addr_byte_size, uint64_t *array, size_t array_len)
 
static lldb::SBData CreateDataFromUInt32Array (lldb::ByteOrder endian, uint32_t addr_byte_size, uint32_t *array, size_t array_len)
 
static lldb::SBData CreateDataFromSInt64Array (lldb::ByteOrder endian, uint32_t addr_byte_size, int64_t *array, size_t array_len)
 
static lldb::SBData CreateDataFromSInt32Array (lldb::ByteOrder endian, uint32_t addr_byte_size, int32_t *array, size_t array_len)
 
static lldb::SBData CreateDataFromDoubleArray (lldb::ByteOrder endian, uint32_t addr_byte_size, double *array, size_t array_len)
 

Protected Member Functions

lldb_private::DataExtractorget () const
 
lldb_private::DataExtractoroperator-> () const
 
lldb::DataExtractorSP & operator* ()
 
const lldb::DataExtractorSP & operator* () const
 
 SBData (const lldb::DataExtractorSP &data_sp)
 
void SetOpaque (const lldb::DataExtractorSP &data_sp)
 

Friends

class SBInstruction
 
class SBProcess
 
class SBSection
 
class SBTarget
 
class SBValue
 

Detailed Description

Definition at line 16 of file SBData.h.

Constructor & Destructor Documentation

◆ SBData() [1/3]

SBData::SBData ( )

◆ SBData() [2/3]

SBData::SBData ( const SBData rhs)

Definition at line 31 of file SBData.cpp.

References LLDB_RECORD_CONSTRUCTOR.

◆ ~SBData()

SBData::~SBData ( )

Definition at line 44 of file SBData.cpp.

◆ SBData() [3/3]

SBData::SBData ( const lldb::DataExtractorSP &  data_sp)
protected

Definition at line 29 of file SBData.cpp.

Member Function Documentation

◆ Append()

bool SBData::Append ( const SBData rhs)

Definition at line 377 of file SBData.cpp.

References LLDB_RECORD_METHOD.

Referenced by lldb_private::repro::RegisterMethods< SBData >().

◆ Clear()

void SBData::Clear ( )

Definition at line 87 of file SBData.cpp.

References LLDB_RECORD_METHOD_NO_ARGS.

Referenced by lldb_private::repro::RegisterMethods< SBData >().

◆ CreateDataFromCString()

lldb::SBData SBData::CreateDataFromCString ( lldb::ByteOrder  endian,
uint32_t  addr_byte_size,
const char *  data 
)
static

◆ CreateDataFromDoubleArray()

lldb::SBData SBData::CreateDataFromDoubleArray ( lldb::ByteOrder  endian,
uint32_t  addr_byte_size,
double *  array,
size_t  array_len 
)
static

◆ CreateDataFromSInt32Array()

lldb::SBData SBData::CreateDataFromSInt32Array ( lldb::ByteOrder  endian,
uint32_t  addr_byte_size,
int32_t *  array,
size_t  array_len 
)
static

◆ CreateDataFromSInt64Array()

lldb::SBData SBData::CreateDataFromSInt64Array ( lldb::ByteOrder  endian,
uint32_t  addr_byte_size,
int64_t *  array,
size_t  array_len 
)
static

◆ CreateDataFromUInt32Array()

lldb::SBData SBData::CreateDataFromUInt32Array ( lldb::ByteOrder  endian,
uint32_t  addr_byte_size,
uint32_t array,
size_t  array_len 
)
static

◆ CreateDataFromUInt64Array()

lldb::SBData SBData::CreateDataFromUInt64Array ( lldb::ByteOrder  endian,
uint32_t  addr_byte_size,
uint64_t *  array,
size_t  array_len 
)
static

◆ get()

lldb_private::DataExtractor * SBData::get ( ) const
protected

Definition at line 50 of file SBData.cpp.

Referenced by lldb::SBValue::SetData().

◆ GetAddress()

lldb::addr_t SBData::GetAddress ( lldb::SBError error,
lldb::offset_t  offset 
)

◆ GetAddressByteSize()

uint8_t SBData::GetAddressByteSize ( )

◆ GetByteOrder()

lldb::ByteOrder SBData::GetByteOrder ( )

◆ GetByteSize()

size_t SBData::GetByteSize ( )

Definition at line 94 of file SBData.cpp.

References LLDB_RECORD_METHOD_NO_ARGS.

Referenced by lldb_private::repro::RegisterMethods< SBData >().

◆ GetDescription()

bool SBData::GetDescription ( lldb::SBStream description,
lldb::addr_t  base_addr = LLDB_INVALID_ADDRESS 
)

◆ GetDouble()

double SBData::GetDouble ( lldb::SBError error,
lldb::offset_t  offset 
)

◆ GetFloat()

float SBData::GetFloat ( lldb::SBError error,
lldb::offset_t  offset 
)

◆ GetLongDouble()

long double SBData::GetLongDouble ( lldb::SBError error,
lldb::offset_t  offset 
)

◆ GetSignedInt16()

int16_t SBData::GetSignedInt16 ( lldb::SBError error,
lldb::offset_t  offset 
)

◆ GetSignedInt32()

int32_t SBData::GetSignedInt32 ( lldb::SBError error,
lldb::offset_t  offset 
)

◆ GetSignedInt64()

int64_t SBData::GetSignedInt64 ( lldb::SBError error,
lldb::offset_t  offset 
)

◆ GetSignedInt8()

int8_t SBData::GetSignedInt8 ( lldb::SBError error,
lldb::offset_t  offset 
)

◆ GetString()

const char * SBData::GetString ( lldb::SBError error,
lldb::offset_t  offset 
)

◆ GetUnsignedInt16()

uint16_t SBData::GetUnsignedInt16 ( lldb::SBError error,
lldb::offset_t  offset 
)

◆ GetUnsignedInt32()

uint32_t SBData::GetUnsignedInt32 ( lldb::SBError error,
lldb::offset_t  offset 
)

◆ GetUnsignedInt64()

uint64_t SBData::GetUnsignedInt64 ( lldb::SBError error,
lldb::offset_t  offset 
)

◆ GetUnsignedInt8()

uint8_t SBData::GetUnsignedInt8 ( lldb::SBError error,
lldb::offset_t  offset 
)

◆ IsValid()

bool SBData::IsValid ( )

◆ operator bool()

SBData::operator bool ( ) const
explicit

Definition at line 64 of file SBData.cpp.

References LLDB_RECORD_METHOD_CONST_NO_ARGS.

◆ operator*() [1/2]

lldb::DataExtractorSP & SBData::operator* ( )
protected

Definition at line 56 of file SBData.cpp.

◆ operator*() [2/2]

const lldb::DataExtractorSP & SBData::operator* ( ) const
protected

Definition at line 58 of file SBData.cpp.

◆ operator->()

lldb_private::DataExtractor * SBData::operator-> ( ) const
protected

Definition at line 52 of file SBData.cpp.

◆ operator=()

const SBData & SBData::operator= ( const SBData rhs)

Definition at line 35 of file SBData.cpp.

References LLDB_RECORD_METHOD, and LLDB_RECORD_RESULT.

◆ ReadRawData()

size_t SBData::ReadRawData ( lldb::SBError error,
lldb::offset_t  offset,
void *  buf,
size_t  size 
)

Definition at line 343 of file SBData.cpp.

References LLDB_RECORD_DUMMY, and lldb::SBError::SetErrorString().

◆ SetAddressByteSize()

void SBData::SetAddressByteSize ( uint8_t  addr_byte_size)

Definition at line 79 of file SBData.cpp.

References LLDB_RECORD_METHOD.

Referenced by lldb_private::repro::RegisterMethods< SBData >().

◆ SetByteOrder()

void SBData::SetByteOrder ( lldb::ByteOrder  endian)

Definition at line 112 of file SBData.cpp.

References LLDB_RECORD_METHOD.

Referenced by lldb_private::repro::RegisterMethods< SBData >().

◆ SetData()

void SBData::SetData ( lldb::SBError error,
const void *  buf,
size_t  size,
lldb::ByteOrder  endian,
uint8_t  addr_size 
)

Definition at line 361 of file SBData.cpp.

References LLDB_RECORD_DUMMY.

◆ SetDataFromCString()

bool SBData::SetDataFromCString ( const char *  data)

◆ SetDataFromDoubleArray()

bool SBData::SetDataFromDoubleArray ( double *  array,
size_t  array_len 
)

◆ SetDataFromSInt32Array()

bool SBData::SetDataFromSInt32Array ( int32_t *  array,
size_t  array_len 
)

◆ SetDataFromSInt64Array()

bool SBData::SetDataFromSInt64Array ( int64_t *  array,
size_t  array_len 
)

◆ SetDataFromUInt32Array()

bool SBData::SetDataFromUInt32Array ( uint32_t array,
size_t  array_len 
)

◆ SetDataFromUInt64Array()

bool SBData::SetDataFromUInt64Array ( uint64_t *  array,
size_t  array_len 
)

◆ SetOpaque()

void SBData::SetOpaque ( const lldb::DataExtractorSP &  data_sp)
protected

Definition at line 46 of file SBData.cpp.

Referenced by lldb::SBInstruction::GetData(), and lldb::SBSection::GetSectionData().

Friends And Related Function Documentation

◆ SBInstruction

friend class SBInstruction
friend

Definition at line 144 of file SBData.h.

◆ SBProcess

friend class SBProcess
friend

Definition at line 145 of file SBData.h.

◆ SBSection

friend class SBSection
friend

Definition at line 146 of file SBData.h.

◆ SBTarget

friend class SBTarget
friend

Definition at line 147 of file SBData.h.

◆ SBValue

friend class SBValue
friend

Definition at line 148 of file SBData.h.


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