Struct lldb::SBValue [] [src]

pub struct SBValue {
    pub raw: SBValueRef,
}

The value of a variable, register or expression.

Fields

The underlying raw SBValueRef.

Methods

impl SBValue
[src]

[src]

Construct a new SBValue.

[src]

Construct a new Some(SBValue) or None.

[src]

Check whether or not this is a valid SBValue value.

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

Find and watch a variable.

[src]

Find and watch the location pointed to by a variable.

[src]

Get an SBData wrapping what this SBValue points to.

This method will dereference the current SBValue, if its data type is a T* or T[], and extract item_count elements of type T from it, copying their contents into an SBData.

item_idx is the index of the first item to retrieve. For an array this is equivalent to array[item_idx], for a pointer to *(pointer + item_idx). In either case, the measurement unit for item_idx is the sizeof(T) rather than bytes.

item_count is how many items should be copied into the output. By default only one item is copied, but more can be asked for.

Returns Some(SBData) with the contents of the copied items, on success. None otherwise.

[src]

Get an SBData wrapping the contents of this SBValue.

This method will read the contents of this object in memory and copy them into an SBData for future use.

Returns Some(SBData) with the contents of this SBValue, on success. None otherwise.

[src]

[src]

[src]

Trait Implementations

impl Debug for SBValue
[src]

[src]

Formats the value using the given formatter.

impl Drop for SBValue
[src]

[src]

Executes the destructor for this type. Read more