StrArray
StrArray
¶
This class cannot be used on its own. Use one of its subclasses
__class_getitem__
classmethod
¶
str_array8
¶
Bases: StrArray
[De]serialize a list[str]
whose length is indicated by a leading u8
followed by that many u8
s
indicating the length of each individual string. The length of the list may be fixed to N
using the syntax
str_array8._0[N]
which then reads N
u8
s to determine the lengths of each string. Use the syntax
str_array8._0[Encoding.UTF8, Encoding.ASCII]
or str_array8._0[N]._0[Encoding.UTF8, Encoding.ASCII]
to
specify a main and optionally a second fallback encoding (UTF8 and ASCII are defaults)
str_array16
¶
Bases: StrArray
[De]serialize a list[str]
whose length is indicated by a leading u16
followed by that many u16
s
indicating the length of each individual string. The length of the list may be fixed to N
using the syntax
str_array16._0[N]
which then reads N
u16
s to determine the lengths of each string. Use the syntax
str_array16._0[Encoding.UTF8, Encoding.ASCII]
or str_array16._0[N]._0[Encoding.UTF8, Encoding.ASCII]
to
specify a main and optionally a second fallback encoding (UTF8 and ASCII are defaults)
str_array32
¶
Bases: StrArray
[De]serialize a list[str]
whose length is indicated by a leading u32
followed by that many u32
s
indicating the length of each individual string. The length of the list may be fixed to N
using the syntax
str_array32._0[N]
which then reads N
u32
s to determine the lengths of each string. Use the syntax
str_array32._0[Encoding.UTF8, Encoding.ASCII]
or str_array32._0[N]._0[Encoding.UTF8, Encoding.ASCII]
to
specify a main and optionally a second fallback encoding (UTF8 and ASCII are defaults)
str_array64
¶
Bases: StrArray
[De]serialize a list[str]
whose length is indicated by a leading u64
followed by that many u64
s
indicating the length of each individual string. The length of the list may be fixed to N
using the syntax
str_array64._0[N]
which then reads N
u64
s to determine the lengths of each string. Use the syntax
str_array64._0[Encoding.UTF8, Encoding.ASCII]
or str_array64._0[N]._0[Encoding.UTF8, Encoding.ASCII]
to
specify a main and optionally a second fallback encoding (UTF8 and ASCII are defaults)
str_array128
¶
Bases: StrArray
[De]serialize a list[str]
whose length is indicated by a leading u128
followed by that many u128
s
indicating the length of each individual string. The length of the list may be fixed to N
using the syntax
str_array128._0[N]
which then reads N
u128
s to determine the lengths of each string. Use the syntax
str_array128._0[Encoding.UTF8, Encoding.ASCII]
or str_array128._0[N]._0[Encoding.UTF8, Encoding.ASCII]
to
specify a main and optionally a second fallback encoding (UTF8 and ASCII are defaults)