mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-07-17 00:38:42 -05:00
14 lines
276 B
Python
14 lines
276 B
Python
#!/usr/bin/env python3
|
|
|
|
def pad(len: int) -> bytes:
|
|
return (0).to_bytes(len, 'little')
|
|
|
|
def u8(i: int) -> bytes:
|
|
return i.to_bytes(1, 'little')
|
|
|
|
def u16(i: int) -> bytes:
|
|
return i.to_bytes(2, 'little')
|
|
|
|
def u32(i: int) -> bytes:
|
|
return i.to_bytes(4, 'little')
|