Guid#
- class carb.audio.Guid#
Bases:
pybind11_object
Representation of a globally unique identifier. This is a 128 bit identifier that is often printed in the format ‘{00000000-0000-0000-0000-000000000000}’.
Methods
__init__
(self)from_string
(self, src)Converts a string to GUID.
- __init__(self: carb.audio._audio.Guid) None #
- from_string(self: carb.audio._audio.Guid, src: str) bool #
Converts a string to GUID.
- Args:
- src: The source string to be converted to a GUID. This string may optionally be surrounded
with curly braces (ie: “{}”).
- Returns:
`True` if the GUID was successfully parsed. `False` if the GUID contained invalid characters or was not in the expected format.