cp2077_extractor.utils
General utility functions.
Classes:
|
List-like object that refills with a random order once empty. |
|
Reader for REDengine sized strings. |
Functions:
|
Convert the given string into |
|
Transcode a WWise |
-
class
InfiniteList(items)[source] Bases:
Generic[~_T]List-like object that refills with a random order once empty.
- Parameters
items (
list[~_T]) – Values to loop through.
Methods:
pop()Get the next item from the back of the list.
Repopulate the list with a new random order, avoiding recent items occuring soon.
-
class
StringReader(initial_bytes=b'')[source] Bases:
BytesIOReader for REDengine sized strings.
Methods:
Parse a length-prefixed string (as bytes) to a Python string.
Parse a length-prefixed string (as bytes) to a Python string.
Parse modified 32 bit VLQ to int.