StackedAttrArray
StackedAttrArray
¶
Bases: Generic[T]
[De]serialize a list[T] of fixed length N using the syntax StackedAttrArray[N][T], where T can only
be one of:
BaseStruct: each sub property of the struct is [de]serialized as its own list in order. For example, aStackedAttrArray[Point2D]will read a length followed by that many X values, followed by the same number of Y values (assumingPoint2Dhas only two properties X and Y)OptionX[S]: all theuXs are [de]serialized as their own list followed by as many objects of typeSas non-zerouXs. All the indices with a zerouXare set toNone
StackedAttrArray8
¶
Bases: StackedAttrArray[T], Generic[T]
[De]serialize a list[T] whose length is indicated by a leading u8 using the syntax
StackedAttrArray8[T], where T can only be one of:
BaseStruct: each sub property of the struct is [de]serialized as its own list in order. For example, aStackedAttrArray8[Point2D]will read a length followed by that many X values, followed by the same number of Y values (assumingPoint2Dhas only two properties X and Y)OptionX[S]: all theuXs are [de]serialized as their own list followed by as many objects of typeSas non-zerouXs. All the indices with a zerouXare set toNone
StackedAttrArray16
¶
Bases: StackedAttrArray[T], Generic[T]
[De]serialize a list[T] whose length is indicated by a leading u16 using the syntax
StackedAttrArray16[T], where T can only be one of:
BaseStruct: each sub property of the struct is [de]serialized as its own list in order. For example, aStackedAttrArray16[Point2D]will read a length followed by that many X values, followed by the same number of Y values (assumingPoint2Dhas only two properties X and Y)OptionX[S]: all theuXs are [de]serialized as their own list followed by as many objects of typeSas non-zerouXs. All the indices with a zerouXare set toNone
StackedAttrArray32
¶
Bases: StackedAttrArray[T], Generic[T]
[De]serialize a list[T] whose length is indicated by a leading u32 using the syntax
StackedAttrArray32[T], where T can only be one of:
BaseStruct: each sub property of the struct is [de]serialized as its own list in order. For example, aStackedAttrArray32[Point2D]will read a length followed by that many X values, followed by the same number of Y values (assumingPoint2Dhas only two properties X and Y)OptionX[S]: all theuXs are [de]serialized as their own list followed by as many objects of typeSas non-zerouXs. All the indices with a zerouXare set toNone
StackedAttrArray64
¶
Bases: StackedAttrArray[T], Generic[T]
[De]serialize a list[T] whose length is indicated by a leading u64 using the syntax
StackedAttrArray64[T], where T can only be one of:
BaseStruct: each sub property of the struct is [de]serialized as its own list in order. For example, aStackedAttrArray64[Point2D]will read a length followed by that many X values, followed by the same number of Y values (assumingPoint2Dhas only two properties X and Y)OptionX[S]: all theuXs are [de]serialized as their own list followed by as many objects of typeSas non-zerouXs. All the indices with a zerouXare set toNone
StackedAttrArray128
¶
Bases: StackedAttrArray[T], Generic[T]
[De]serialize a list[T] whose length is indicated by a leading u128 using the syntax
StackedAttrArray128[T], where T can only be one of:
BaseStruct: each sub property of the struct is [de]serialized as its own list in order. For example, aStackedAttrArray128[Point2D]will read a length followed by that many X values, followed by the same number of Y values (assumingPoint2Dhas only two properties X and Y)OptionX[S]: all theuXs are [de]serialized as their own list followed by as many objects of typeSas non-zerouXs. All the indices with a zerouXare set toNone