SBStructuredDataΒΆ

class lldb.SBStructuredData(*args)ΒΆ

A class representing a StructuredData event.

This class wraps the event type generated by StructuredData features.

Methods Summary

Clear(SBStructuredData self)

GetAsJSON(SBStructuredData self, SBStream stream)

GetBooleanValue([fail_value])

Return the boolean value if this data structure is a boolean type.

GetDescription(SBStructuredData self, ...)

GetFloatValue([fail_value])

Return the floating point value if this data structure is a floating type.

GetGenericValue()

Return the generic pointer if this data structure is a generic type.

GetIntegerValue(SBStructuredData self, ...)

GetItemAtIndex(idx)

Return the value corresponding to an index if this data structure is array.

GetKeys(keys)

Fill keys with the keys in this object and return true if this data structure is a dictionary.

GetSignedIntegerValue([fail_value])

Return the integer value if this data structure is an integer type.

GetSize()

Return the size (i.e. number of elements) in this data structure if it is an array or dictionary type.

GetStringValue(dst)

Provides the string value if this data structure is a string type.

GetType()

Return the type of data in this data structure

GetUnsignedIntegerValue([fail_value])

Return the integer value if this data structure is an integer type.

GetValueForKey(key)

Return the value corresponding to a key if this data structure is a dictionary type.

IsValid(SBStructuredData self)

SetFromJSON(-> SBError)

Methods Documentation

Clear(SBStructuredData self)ΒΆ
GetAsJSON(SBStructuredData self, SBStream stream) SBErrorΒΆ
GetBooleanValue(fail_value=False)ΒΆ

Return the boolean value if this data structure is a boolean type.

GetDescription(SBStructuredData self, SBStream stream) SBErrorΒΆ
GetFloatValue(fail_value=0.0)ΒΆ

Return the floating point value if this data structure is a floating type.

GetGenericValue()ΒΆ

Return the generic pointer if this data structure is a generic type.

GetIntegerValue(SBStructuredData self, uint64_t fail_value=0) uint64_tΒΆ
GetItemAtIndex(idx)ΒΆ

Return the value corresponding to an index if this data structure is array.

GetKeys(keys)ΒΆ

Fill keys with the keys in this object and return true if this data structure is a dictionary. Returns false otherwise.

GetSignedIntegerValue(fail_value=0)ΒΆ

Return the integer value if this data structure is an integer type.

GetSize()ΒΆ

Return the size (i.e. number of elements) in this data structure if it is an array or dictionary type. For other types, 0 will be

GetStringValue(dst)ΒΆ

Provides the string value if this data structure is a string type.

Parameters:
  • dst (string, out) – pointer where the string value will be written. In case it is null, nothing will be written at dst.

  • dst_len (int, in) – max number of characters that can be written at dst. In case it is zero, nothing will be written at dst. If this length is not enough to write the complete string value, (dst_len - 1) bytes of the string value will be written at dst followed by a null character.

Return type:

int

Returns:

Returns the byte size needed to completely write the string value at dst in all cases.

GetType()ΒΆ

Return the type of data in this data structure

GetUnsignedIntegerValue(fail_value=0)ΒΆ

Return the integer value if this data structure is an integer type.

GetValueForKey(key)ΒΆ

Return the value corresponding to a key if this data structure is a dictionary type.

IsValid(SBStructuredData self) boolΒΆ
SetFromJSON(SBStructuredData self, SBStream stream) SBErrorΒΆ
SetFromJSON(SBStructuredData self, char const * json) SBError