Archived
This forum has been archived. Please start a new discussion on GitHub.
Sequence inside a structure
I´m trying to put a sequence inside a structure but I get a Slice compilation error. Is it possible?
Example:
Thanks for your help
Example:
structure MyStructure{ sequence<byte> someData; sequence<byte> moreData; };
Thanks for your help
0
Comments
-
Hi Markus
You can put sequences inside a struct , note that the correct keyword is "struct" not "structure", actually you cannot define the sequence type inside the struct but you can write what you want as follow:module Demo { sequence<byte> ByteSeq; struct MyStructure { ByteSeq someData; ByteSeq moreData; }; };
Hope this help,
José0