I´m trying to put a sequence inside a structure but I get a Slice compilation error. Is it possible?
Example:
Thanks for your helpCode:structure MyStructure{ sequence<byte> someData; sequence<byte> moreData; };
|
|
I´m trying to put a sequence inside a structure but I get a Slice compilation error. Is it possible?
Example:
Thanks for your helpCode:structure MyStructure{ sequence<byte> someData; sequence<byte> moreData; };
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:
Hope this help,Code:module Demo { sequence<byte> ByteSeq; struct MyStructure { ByteSeq someData; ByteSeq moreData; }; };
José
There are currently 1 users browsing this thread. (0 members and 1 guests)