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

Function NewStructMap

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

Create a new StructMap struct

()

Source from the content-addressed store, hash-verified

51
52// Create a new StructMap struct
53func NewStructMap() *StructMap {
54 return &StructMap{
55 F1: make(map[int32]byte),
56 F2: make(map[int32]*byte),
57 F3: make(map[int32][]byte),
58 F4: make(map[int32]*[]byte),
59 F5: make(map[int32]EnumSimple),
60 F6: make(map[int32]*EnumSimple),
61 F7: make(map[int32]FlagsSimple),
62 F8: make(map[int32]*FlagsSimple),
63 F9: make(map[int32]StructSimple),
64 F10: make(map[int32]*StructSimple),
65 }
66}
67
68// Create a new StructMap struct from the given field values
69func NewStructMapFromFieldValues(F1 map[int32]byte, F2 map[int32]*byte, F3 map[int32][]byte, F4 map[int32]*[]byte, F5 map[int32]EnumSimple, F6 map[int32]*EnumSimple, F7 map[int32]FlagsSimple, F8 map[int32]*FlagsSimple, F9 map[int32]StructSimple, F10 map[int32]*StructSimple) *StructMap {

Callers 7

NewStructMapFromJSONFunction · 0.85
DeserializeMethod · 0.85
DeserializeValueMethod · 0.85
GetMethod · 0.85
GetMethod · 0.85
DeserializeMethod · 0.85
DeserializeValueMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected