Class StructArray<T>
Wraps a fixed- or variable-length ARC4 array of ARC56 generated struct elements (AVMObjectType) for encoding/decoding.
Named ARC56 structs are not WireType instances themselves (they have their own hand-generated ToByteArray()/Parse()),
so this adapter lets them participate in the same argument/return encoding pipeline as the primitive ARC4 types.
Only static (fixed-size) element structs are supported: each element is inlined directly, matching the ARC4
encoding rule that arrays of static elements have no per-element offset table.
Inheritance
StructArray<T>
Assembly: Algorand.dll
Syntax
public class StructArray<T> : WireType where T : AVMObjectType
Type Parameters
Constructors
|
Edit this page
View Source
StructArray(Func<byte[], T>)
Declaration
public StructArray(Func<byte[], T> parse)
Parameters
| Type |
Name |
Description |
| Func<byte[], T> |
parse |
|
Properties
|
Edit this page
View Source
FixedLength
Declaration
public uint FixedLength { get; set; }
Property Value
|
Edit this page
View Source
IsDynamic
Declaration
public override bool IsDynamic { get; }
Property Value
Overrides
|
Edit this page
View Source
IsFixedLength
Declaration
public bool IsFixedLength { get; set; }
Property Value
|
Edit this page
View Source
Value
Declaration
public List<T> Value { get; set; }
Property Value
Methods
|
Edit this page
View Source
Decode(byte[])
Declaration
public override uint Decode(byte[] data)
Parameters
| Type |
Name |
Description |
| byte[] |
data |
|
Returns
Overrides
|
Edit this page
View Source
Encode()
Declaration
public override byte[] Encode()
Returns
Overrides
|
Edit this page
View Source
From(object)
Create instance of the object from the value
Declaration
public override bool From(object instance)
Parameters
| Type |
Name |
Description |
| object |
instance |
C# variable
|
Returns
Overrides
|
Edit this page
View Source
GetDescription()
Declaration
public override string GetDescription()
Returns
Overrides
|
Edit this page
View Source
ToValue()
Converts WireType to c# value
Declaration
public override object ToValue()
Returns
Overrides