LLDB mainline
|
#include <SBData.h>
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::DataExtractor * | get () const |
lldb_private::DataExtractor * | operator-> () const |
lldb::DataExtractorSP & | operator* () |
const lldb::DataExtractorSP & | operator* () const |
SBData (const lldb::DataExtractorSP &data_sp) | |
void | SetOpaque (const lldb::DataExtractorSP &data_sp) |
Private Attributes | |
lldb::DataExtractorSP | m_opaque_sp |
Friends | |
class | SBInstruction |
class | SBProcess |
class | SBSection |
class | SBTarget |
class | SBValue |
class | lldb_private::ScriptInterpreter |
SBData::SBData | ( | ) |
Definition at line 25 of file SBData.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by CreateDataFromCString(), CreateDataFromDoubleArray(), CreateDataFromSInt32Array(), CreateDataFromSInt64Array(), CreateDataFromUInt32Array(), and CreateDataFromUInt64Array().
SBData::SBData | ( | const SBData & | rhs | ) |
Definition at line 31 of file SBData.cpp.
References LLDB_INSTRUMENT_VA.
|
default |
|
protected |
Definition at line 29 of file SBData.cpp.
bool SBData::Append | ( | const SBData & | rhs | ) |
Definition at line 375 of file SBData.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
void SBData::Clear | ( | ) |
Definition at line 85 of file SBData.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
|
static |
Definition at line 384 of file SBData.cpp.
References LLDB_INSTRUMENT_VA, and SBData().
|
static |
Definition at line 483 of file SBData.cpp.
References LLDB_INSTRUMENT_VA, and SBData().
|
static |
Definition at line 463 of file SBData.cpp.
References LLDB_INSTRUMENT_VA, and SBData().
|
static |
Definition at line 443 of file SBData.cpp.
References LLDB_INSTRUMENT_VA, and SBData().
|
static |
Definition at line 423 of file SBData.cpp.
References LLDB_INSTRUMENT_VA, and SBData().
|
static |
Definition at line 403 of file SBData.cpp.
References LLDB_INSTRUMENT_VA, and SBData().
|
protected |
Definition at line 49 of file SBData.cpp.
References m_opaque_sp.
Referenced by lldb::SBValue::SetData().
lldb::addr_t SBData::GetAddress | ( | lldb::SBError & | error, |
lldb::offset_t | offset | ||
) |
Definition at line 162 of file SBData.cpp.
References error(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
uint8_t SBData::GetAddressByteSize | ( | ) |
Definition at line 69 of file SBData.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by SetDataFromCString(), SetDataFromDoubleArray(), SetDataFromSInt32Array(), SetDataFromSInt64Array(), SetDataFromUInt32Array(), and SetDataFromUInt64Array().
lldb::ByteOrder SBData::GetByteOrder | ( | ) |
Definition at line 101 of file SBData.cpp.
References lldb::eByteOrderInvalid, LLDB_INSTRUMENT_VA, and m_opaque_sp.
Referenced by SetDataFromCString(), SetDataFromDoubleArray(), SetDataFromSInt32Array(), SetDataFromSInt64Array(), SetDataFromUInt32Array(), and SetDataFromUInt64Array().
size_t SBData::GetByteSize | ( | ) |
Definition at line 92 of file SBData.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
bool SBData::GetDescription | ( | lldb::SBStream & | description, |
lldb::addr_t | base_addr = LLDB_INVALID_ADDRESS |
||
) |
Definition at line 315 of file SBData.cpp.
References lldb_private::DumpDataExtractor(), lldb::eFormatBytesWithASCII, LLDB_INSTRUMENT_VA, m_opaque_sp, lldb_private::Stream::PutCString(), and lldb::SBStream::ref().
double SBData::GetDouble | ( | lldb::SBError & | error, |
lldb::offset_t | offset | ||
) |
Definition at line 132 of file SBData.cpp.
References error(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
float SBData::GetFloat | ( | lldb::SBError & | error, |
lldb::offset_t | offset | ||
) |
Definition at line 117 of file SBData.cpp.
References error(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
long double SBData::GetLongDouble | ( | lldb::SBError & | error, |
lldb::offset_t | offset | ||
) |
Definition at line 147 of file SBData.cpp.
References error(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
int16_t SBData::GetSignedInt16 | ( | lldb::SBError & | error, |
lldb::offset_t | offset | ||
) |
Definition at line 252 of file SBData.cpp.
References error(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
int32_t SBData::GetSignedInt32 | ( | lldb::SBError & | error, |
lldb::offset_t | offset | ||
) |
Definition at line 267 of file SBData.cpp.
References error(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
int64_t SBData::GetSignedInt64 | ( | lldb::SBError & | error, |
lldb::offset_t | offset | ||
) |
Definition at line 282 of file SBData.cpp.
References error(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
int8_t SBData::GetSignedInt8 | ( | lldb::SBError & | error, |
lldb::offset_t | offset | ||
) |
Definition at line 237 of file SBData.cpp.
References error(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
const char * SBData::GetString | ( | lldb::SBError & | error, |
lldb::offset_t | offset | ||
) |
Definition at line 297 of file SBData.cpp.
References error(), lldb_private::ConstString::GetCString(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
uint16_t SBData::GetUnsignedInt16 | ( | lldb::SBError & | error, |
lldb::offset_t | offset | ||
) |
Definition at line 192 of file SBData.cpp.
References error(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
uint32_t SBData::GetUnsignedInt32 | ( | lldb::SBError & | error, |
lldb::offset_t | offset | ||
) |
Definition at line 207 of file SBData.cpp.
References error(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
uint64_t SBData::GetUnsignedInt64 | ( | lldb::SBError & | error, |
lldb::offset_t | offset | ||
) |
Definition at line 222 of file SBData.cpp.
References error(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
uint8_t SBData::GetUnsignedInt8 | ( | lldb::SBError & | error, |
lldb::offset_t | offset | ||
) |
Definition at line 177 of file SBData.cpp.
References error(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
bool SBData::IsValid | ( | ) |
Definition at line 59 of file SBData.cpp.
References LLDB_INSTRUMENT_VA.
Referenced by lldb::SBTarget::CreateValueFromData().
|
explicit |
Definition at line 63 of file SBData.cpp.
References LLDB_INSTRUMENT_VA.
|
protected |
Definition at line 55 of file SBData.cpp.
References m_opaque_sp.
|
protected |
Definition at line 57 of file SBData.cpp.
References m_opaque_sp.
|
protected |
Definition at line 51 of file SBData.cpp.
References m_opaque_sp.
Definition at line 35 of file SBData.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
size_t SBData::ReadRawData | ( | lldb::SBError & | error, |
lldb::offset_t | offset, | ||
void * | buf, | ||
size_t | size | ||
) |
Definition at line 330 of file SBData.cpp.
References error(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
void SBData::SetAddressByteSize | ( | uint8_t | addr_byte_size | ) |
Definition at line 78 of file SBData.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
void SBData::SetByteOrder | ( | lldb::ByteOrder | endian | ) |
Definition at line 110 of file SBData.cpp.
References LLDB_INSTRUMENT_VA, and m_opaque_sp.
void SBData::SetData | ( | lldb::SBError & | error, |
const void * | buf, | ||
size_t | size, | ||
lldb::ByteOrder | endian, | ||
uint8_t | addr_size | ||
) |
Definition at line 346 of file SBData.cpp.
References error(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
bool SBData::SetDataFromCString | ( | const char * | data | ) |
Definition at line 503 of file SBData.cpp.
References GetAddressByteSize(), GetByteOrder(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
bool SBData::SetDataFromDoubleArray | ( | double * | array, |
size_t | array_len | ||
) |
Definition at line 605 of file SBData.cpp.
References GetAddressByteSize(), GetByteOrder(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
bool SBData::SetDataFromSInt32Array | ( | int32_t * | array, |
size_t | array_len | ||
) |
Definition at line 585 of file SBData.cpp.
References GetAddressByteSize(), GetByteOrder(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
bool SBData::SetDataFromSInt64Array | ( | int64_t * | array, |
size_t | array_len | ||
) |
Definition at line 565 of file SBData.cpp.
References GetAddressByteSize(), GetByteOrder(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
bool SBData::SetDataFromUInt32Array | ( | uint32_t * | array, |
size_t | array_len | ||
) |
Definition at line 545 of file SBData.cpp.
References GetAddressByteSize(), GetByteOrder(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
bool SBData::SetDataFromUInt64Array | ( | uint64_t * | array, |
size_t | array_len | ||
) |
Definition at line 524 of file SBData.cpp.
References GetAddressByteSize(), GetByteOrder(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
void SBData::SetDataWithOwnership | ( | lldb::SBError & | error, |
const void * | buf, | ||
size_t | size, | ||
lldb::ByteOrder | endian, | ||
uint8_t | addr_size | ||
) |
Definition at line 359 of file SBData.cpp.
References error(), LLDB_INSTRUMENT_VA, and m_opaque_sp.
|
protected |
Definition at line 45 of file SBData.cpp.
References m_opaque_sp.
Referenced by lldb::SBInstruction::GetData(), and lldb::SBSection::GetSectionData().
|
friend |
|
friend |
|
private |
Definition at line 159 of file SBData.h.
Referenced by Append(), Clear(), get(), GetAddress(), GetAddressByteSize(), GetByteOrder(), GetByteSize(), lldb_private::ScriptInterpreter::GetDataExtractorFromSBData(), GetDescription(), GetDouble(), GetFloat(), GetLongDouble(), GetSignedInt16(), GetSignedInt32(), GetSignedInt64(), GetSignedInt8(), GetString(), GetUnsignedInt16(), GetUnsignedInt32(), GetUnsignedInt64(), GetUnsignedInt8(), operator*(), operator->(), operator=(), ReadRawData(), SetAddressByteSize(), SetByteOrder(), SetData(), SetDataFromCString(), SetDataFromDoubleArray(), SetDataFromSInt32Array(), SetDataFromSInt64Array(), SetDataFromUInt32Array(), SetDataFromUInt64Array(), SetDataWithOwnership(), and SetOpaque().