SL2 Analyzer
Read a FromSoftware .sl2 save and report what is in it
Loading...
Searching...
No Matches
reader.py File Reference

Go to the source code of this file.

Namespaces

namespace  sl2
 
namespace  sl2.reader
 

Functions

 sl2.reader.read_uint (buf, off, size)
 Read a little-endian unsigned integer, or None if it would run past the end of the buffer.
 
 sl2.reader.u8 (buf, off)
 One-byte read.
 
 sl2.reader.u16 (buf, off)
 Two-byte read.
 
 sl2.reader.u32 (buf, off)
 Four-byte read.
 
 sl2.reader.u64 (buf, off)
 Eight-byte read.
 
 sl2.reader.read_utf16 (buf, off, max_char)
 Decode a UTF-16LE string that ends at the first null pair.
 
 sl2.reader.is_valid_name (name)
 Decide whether a decoded string is a plausible character name.
 

Variables

 sl2.reader.NAME_OK = set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 -_'")
 The only characters a real player name may contain.