C# Structure to PB
Posted: Sat Dec 09, 2017 9:02 pm
How can I define this structure in PB.
The problem is data has a dynamic size (chunkSize) and I can't read p.
The problem is data has a dynamic size (chunkSize) and I can't read p.
Code: Select all
typedef struct {
ID chunkID;
long chunkSize;
char data[]; //how does this work?
char p;
} LabelChunk;
Code: Select all
Structure lablStruc
chunkID.s{4}
chunkSize.l
data ;[] the size is the chunkSize
p.a
EndStructure