Vte.Uuid¶
Fields¶
None
Methods¶
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class Vte.Uuid¶
An object representing an UUID.
New in version 0.78.
- classmethod new_from_string(str, len, fmt)¶
- Parameters:
str (
str) – a stringlen (
int) – the length of str, or -1 is str is NUL terminatedfmt (
Vte.UuidFormat) – flags fromVte.UuidFormatfor which fmt(s) to accept
- Returns:
a new UUID, or
Noneis str is not a valid UUID string representation- Return type:
Creates a new UUID from its string representation str.
New in version 0.78.
- classmethod new_v4()¶
- Returns:
a new v4 UUID
- Return type:
Creates a new random UUID.
New in version 0.78.
- classmethod validate_string(str, len, fmt)¶
- Parameters:
str (
str) – a stringlen (
int) – the length of str, or -1 is str is NUL terminatedfmt (
Vte.UuidFormat) – aVte.UuidFormat
- Returns:
Trueiff str is a valid string representation- Return type:
Checks whether str is a valid string representation of an UUID.
New in version 0.78.
- dup()¶
- Returns:
a new copy of @`self`
- Return type:
Creates a copy of self.
New in version 0.78.
- equal(other)¶
-
Compares self and other for equality.
New in version 0.78.
- free()¶
Frees self.
New in version 0.78.
- free_to_string(fmt, len)¶
- Parameters:
fmt (
Vte.UuidFormat) – aVte.UuidFormatlen (
int) – a location to store the length of the returned string, orNone
- Returns:
a string representation of self
- Return type:
Frees self and returns its string representation, see
Vte.Uuid.to_string() for more information.New in version 0.78.
- new_v5(data, len)¶
- Parameters:
- Returns:
a new v5 UUID
- Return type:
Creates a new UUID for self and str.
New in version 0.78.
- to_string(fmt)¶
- Parameters:
fmt (
Vte.UuidFormat) – aVte.UuidFormat- Returns:
a string representation of self
- len:
a location to store the length of the returned string, or
None
- Return type:
Returns the string representation of self.
New in version 0.78.