Ags.UUID

Fields

Name

Type

Access

Description

data

bytes

r/w

Methods

class

alloc ()

class

from_string (str)

compare (b)

copy ()

free ()

generate ()

to_string ()

Details

class Ags.UUID
classmethod alloc()
Returns:

a new Ags.UUID

Return type:

Ags.UUID

Allocate Ags.UUID.

New in version 3.0.0.

classmethod from_string(str)
Parameters:

str (str) – the UUID as string

Returns:

the new Ags.UUID on success, otherwise None

Return type:

Ags.UUID

Retrieve Ags.UUID by parsing str.

New in version 3.0.0.

compare(b)
Parameters:

b (Ags.UUID) – another Ags.UUID

Returns:

0 on success, otherwise a value less or greater than 0

Return type:

int

Compare self with b.

New in version 3.0.0.

copy()
Returns:

a pointer of the new Ags.UUID

Return type:

object or None

Create a copy of self.

New in version 3.0.0.

free()

Free the memory of self.

New in version 3.0.0.

generate()

Generate random UUID.

New in version 3.0.0.

to_string()
Returns:

the UUID as string if self not None, else None

Return type:

str

Get string representation of self.

New in version 3.0.0.