binary icon indicating copy to clipboard operation
binary copied to clipboard

Nested types and arrays in struct

Open siredmar opened this issue 2 years ago • 0 comments

Hi! Is it possible to do nested types and arrays in structs like

type nested struct {
    A     uint8  `bitfield:"4"`
    B     uint32  `bitfield:"32"`                
}

type mainstruct struct {
    data0  uint32 `word:"32"`    
    data1  uint32 `word:"32"`
    nested nested
    nestedArray [4]nested
}

siredmar avatar Nov 17 '23 15:11 siredmar