Str
Str
¶
[De]serialize a string with a fixed length N
using the syntax Str[N]
. Use the syntax
Str[N]._0[Encoding.UTF8, Encoding.ASCII]
to specify a main and optionally a second fallback encoding
(UTF8 and ASCII are defaults)
__class_getitem__
classmethod
¶
str8
¶
Bases: Str
[De]serialize a string whose length is indicated by a leading u8
. Use the syntax
str8._0[Encoding.UTF8, Encoding.ASCII]
to specify a main and optionally a second fallback encoding
(UTF8 and ASCII are defaults)
str16
¶
Bases: Str
[De]serialize a string whose length is indicated by a leading u16
. Use the syntax
str16._0[Encoding.UTF8, Encoding.ASCII]
to specify a main and optionally a second fallback encoding
(UTF8 and ASCII are defaults)
str32
¶
Bases: Str
[De]serialize a string whose length is indicated by a leading u32
. Use the syntax
str32._0[Encoding.UTF8, Encoding.ASCII]
to specify a main and optionally a second fallback encoding
(UTF8 and ASCII are defaults)