NtStr
NtStr
¶
[De]serialize a null terminated string with a fixed length N (null terminator included) using the syntax
NtStr[N]. Use the syntax NtStr[N]._0[Encoding.UTF8, Encoding.ASCII] to specify a main and optionally a
second fallback encoding (UTF8 and ASCII are defaults)
__class_getitem__
classmethod
¶
c_str
¶
Bases: NtStr
A C style null terminated string. Use the syntax
c_str._0[Encoding.UTF8, Encoding.ASCII] to specify a main and optionally a second fallback encoding
(UTF8 and ASCII are defaults)
nt_str8
¶
Bases: NtStr
[De]serialize a null terminated string whose length is also indicated by a leading u8 (null terminator
included). Use the syntax nt_str8._0[Encoding.UTF8, Encoding.ASCII] to specify a main and optionally a second
fallback encoding (UTF8 and ASCII are defaults)
nt_str16
¶
Bases: NtStr
[De]serialize a null terminated string whose length is also indicated by a leading u16 (null terminator
included). Use the syntax nt_str16._0[Encoding.UTF8, Encoding.ASCII] to specify a main and optionally a second
fallback encoding (UTF8 and ASCII are defaults)
nt_str32
¶
Bases: NtStr
[De]serialize a null terminated string whose length is also indicated by a leading u32 (null terminator
included). Use the syntax nt_str32._0[Encoding.UTF8, Encoding.ASCII] to specify a main and optionally a second
fallback encoding (UTF8 and ASCII are defaults)