Create a new StructArray struct
()
| 51 | |
| 52 | // Create a new StructArray struct |
| 53 | func NewStructArray() *StructArray { |
| 54 | return &StructArray{ |
| 55 | F1: [2]byte{}, |
| 56 | F2: [2]*byte{}, |
| 57 | F3: [2][]byte{}, |
| 58 | F4: [2]*[]byte{}, |
| 59 | F5: [2]EnumSimple{}, |
| 60 | F6: [2]*EnumSimple{}, |
| 61 | F7: [2]FlagsSimple{}, |
| 62 | F8: [2]*FlagsSimple{}, |
| 63 | F9: [2]StructSimple{}, |
| 64 | F10: [2]*StructSimple{}, |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | // Create a new StructArray struct from the given field values |
| 69 | func NewStructArrayFromFieldValues(F1 [2]byte, F2 [2]*byte, F3 [2][]byte, F4 [2]*[]byte, F5 [2]EnumSimple, F6 [2]*EnumSimple, F7 [2]FlagsSimple, F8 [2]*FlagsSimple, F9 [2]StructSimple, F10 [2]*StructSimple) *StructArray { |
no outgoing calls
no test coverage detected