vidua.util module

class vidua.util.PatchType(value)

Bases: Enum

An enumeration.

BPS = 2
IPS = 1
vidua.util.copy_bytes(from_buffer, to_buffer, length, size=256)

Copy bytes from one buffer to another.

Parameters:
  • from_buffer (BinaryIO) – the source buffer

  • to_buffer (BinaryIO) – the destination buffer

  • length (int) – the total number of bytes to copy

  • size (int) – the number of bytes to copy at once

vidua.util.identify(patch)

Identify the type of a patch.

Parameters:

patch (BinaryIO) – the patch file