@Count decorator define a variable length array based on the primitive.
@Count
The number of time to read the target property or a string refering to a field present on the target instance.
Optional
The property decorator function ran at runtime
The decorator also allows to refer to another field already present in the binary definition target instance.
class BinProtocol { @Relation(PrimitiveSymbol.u8) len: Number @Count('len') @Relation(PrimitiveSymbol.u8) vec: Number} Copy
class BinProtocol { @Relation(PrimitiveSymbol.u8) len: Number @Count('len') @Relation(PrimitiveSymbol.u8) vec: Number}
@Count
decorator define a variable length array based on the primitive.