MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / NewStructArray

Function NewStructArray

projects/Go/proto/test/StructArray.go:53–66  ·  view source on GitHub ↗

Create a new StructArray struct

()

Source from the content-addressed store, hash-verified

51
52// Create a new StructArray struct
53func 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
69func 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 {

Callers 7

DeserializeMethod · 0.85
DeserializeValueMethod · 0.85
GetMethod · 0.85
GetMethod · 0.85
DeserializeMethod · 0.85
DeserializeValueMethod · 0.85
NewStructArrayFromJSONFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected