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 u8s
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 u8s 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 u16s
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 u16s 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 u32s
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 u32s 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 u64s
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 u64s 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 u128s
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 u128s 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)