avl._core.uint module

class avl._core.uint.Uint(*args, auto_random: bool = True, fmt: ~collections.abc.Callable[[...], str] = <class 'str'>, width: int = 32)[source]
__init__(*args, auto_random: bool = True, fmt: ~collections.abc.Callable[[...], str] = <class 'str'>, width: int = 32) None[source]

Initialize an instance of the class.

Parameters:
  • value (int) – The value to be assigned to the instance.

  • auto_random (bool, optional) – Flag to enable automatic randomization, defaults to True.

  • fmt (function, optional) – The format to be used, defaults to str.

  • width (int, optional) – The width of the variable in bits, defaults to 32.

Raises:

ValueError – If the width is not a positive integer.

class avl._core.uint.Uint8(*args, auto_random: bool = True, fmt: ~collections.abc.Callable[[...], str] = <class 'str'>)[source]
__init__(*args, auto_random: bool = True, fmt: ~collections.abc.Callable[[...], str] = <class 'str'>) None[source]

Initialize an instance of the class.

Parameters:
  • value (int) – The value to be assigned to the instance.

  • auto_random (bool, optional) – Flag to enable automatic randomization, defaults to True.

  • fmt (function, optional) – The format to be used, defaults to str.

class avl._core.uint.Uint16(*args, auto_random: bool = True, fmt: ~collections.abc.Callable[[...], str] = <class 'str'>)[source]
__init__(*args, auto_random: bool = True, fmt: ~collections.abc.Callable[[...], str] = <class 'str'>) None[source]

Initialize an instance of the class.

Parameters:
  • value (int) – The value to be assigned to the instance.

  • auto_random (bool, optional) – Flag to enable automatic randomization, defaults to True.

  • fmt (function, optional) – The format to be used, defaults to str.

class avl._core.uint.Uint32(*args, auto_random: bool = True, fmt: ~collections.abc.Callable[[...], str] = <class 'str'>)[source]
__init__(*args, auto_random: bool = True, fmt: ~collections.abc.Callable[[...], str] = <class 'str'>) None[source]

Initialize an instance of the class.

Parameters:
  • value (int) – The value to be assigned to the instance.

  • auto_random (bool, optional) – Flag to enable automatic randomization, defaults to True.

  • fmt (function, optional) – The format to be used, defaults to str.

class avl._core.uint.Uint64(*args, auto_random: bool = True, fmt: ~collections.abc.Callable[[...], str] = <class 'str'>)[source]
__init__(*args, auto_random: bool = True, fmt: ~collections.abc.Callable[[...], str] = <class 'str'>) None[source]

Initialize an instance of the class.

Parameters:
  • value (int) – The value to be assigned to the instance.

  • auto_random (bool, optional) – Flag to enable automatic randomization, defaults to True.

  • fmt (function, optional) – The format to be used, defaults to str.