wiithon.formats.archive module

class wiithon.formats.archive.Archive(*args, **kwargs)[source]

Bases: Protocol

get_file(path)[source]
Parameters:

path (str)

Return type:

bytes

replace_file(path, data)[source]
Parameters:
Return type:

None

get_bytes()[source]
Return type:

bytes

class wiithon.formats.archive.Container(*args, **kwargs)[source]

Bases: Protocol

data: bytes
classmethod read(stream)[source]
Parameters:

stream (BinaryIO)

Return type:

Container

get_bytes()[source]
Return type:

bytes

wiithon.formats.archive.resolve_read(patcher, path)[source]
Parameters:

path (str)

Return type:

bytes

wiithon.formats.archive.resolve_write(patcher, path, new_data)[source]
Parameters:
Return type:

None