Module: ninty.endian

def swap_array(data: bytes, size: int) -> bytes
Swaps an array of elements with the given size.

def swap_array(data: bytes, size: int, offset: int, stride: int) -> bytes
Swaps elements of the given size at the given offset in a structured array with the given stride.

def swap_array(data: bytes, size: int, offset: int, count: int, stride: int) -> bytes
Swaps count elements of the given size at the given offset in a structured array with the given stride.