sdk-core v2026.11.05
PS2 SDK - core tier (build-critical EE/IOP modules)
Loading...
Searching...
No Matches
gen_inflate_data Namespace Reference

Variables

int SIZE = 65536
tuple words
 rng = random.Random(12345)
 out = bytearray()
str line = " ".join(rng.choice(words) for _ in range(rng.randint(3, 12)))
 data = bytes(out[:SIZE])
 comp = zlib.compressobj(9, zlib.DEFLATED, -15)
 stream = comp.compress(data) + comp.flush()
int h = 2166136261
 path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "src", "inflate_data.h")
 newline

Detailed Description

Writes src/inflate_data.h: a raw deflate stream of 64 KiB of generated text and tables, for the inflate kernel.

Variable Documentation

◆ comp

gen_inflate_data.comp = zlib.compressobj(9, zlib.DEFLATED, -15)

Definition at line 23 of file gen_inflate_data.py.

◆ data

gen_inflate_data.data = bytes(out[:SIZE])

Definition at line 21 of file gen_inflate_data.py.

◆ h

tuple h = 2166136261

Definition at line 26 of file gen_inflate_data.py.

◆ line

str gen_inflate_data.line = " ".join(rng.choice(words) for _ in range(rng.randint(3, 12)))

Definition at line 17 of file gen_inflate_data.py.

◆ newline

gen_inflate_data.newline

Definition at line 31 of file gen_inflate_data.py.

◆ out

gen_inflate_data.out = bytearray()

Definition at line 14 of file gen_inflate_data.py.

◆ path

gen_inflate_data.path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "src", "inflate_data.h")

Definition at line 30 of file gen_inflate_data.py.

◆ rng

gen_inflate_data.rng ( void ) = random.Random(12345)

Definition at line 13 of file gen_inflate_data.py.

◆ SIZE

int gen_inflate_data.SIZE = 65536

Definition at line 8 of file gen_inflate_data.py.

◆ stream

gen_inflate_data.stream = comp.compress(data) + comp.flush()

Definition at line 24 of file gen_inflate_data.py.

◆ words

tuple gen_inflate_data.words
Initial value:
= ("player enemy level score texture vertex sound music frame buffer sprite camera light shadow model "
"packet render update input pad memory card save load stage world boss item weapon health magic").split()

Definition at line 10 of file gen_inflate_data.py.