Array Array ¶ Bases: Generic[T] [De]serialize a list[T] of fixed length N using the syntax Array[N][T] __class_getitem__ classmethod ¶ __class_getitem__(item: Any) -> type from_bytes classmethod ¶ from_bytes(bytes_: bytes) -> Self from_file classmethod ¶ from_file(filepath: str, strict: bool = True) -> Self from_stream classmethod ¶ from_stream(stream: ByteStream, ver: Version = Version(0)) -> list[T] to_bytes classmethod ¶ to_bytes(value: list[T]) -> bytes to_file classmethod ¶ to_file(filepath: str, value: list[T]) Array8 ¶ Bases: Array[T], Generic[T] [De]serialize a list[T] whose length is indicated by a leading u8 Array16 ¶ Bases: Array[T], Generic[T] [De]serialize a list[T] whose length is indicated by a leading u16 Array32 ¶ Bases: Array[T], Generic[T] [De]serialize a list[T] whose length is indicated by a leading u32 Array64 ¶ Bases: Array[T], Generic[T] [De]serialize a list[T] whose length is indicated by a leading u64 Array128 ¶ Bases: Array[T], Generic[T] [De]serialize a list[T] whose length is indicated by a leading u128