MCPcopy
hub / github.com/golang/protobuf / Int32

Function Int32

proto/wrappers.go:16–16  ·  proto/wrappers.go::Int32

Int32 stores v in a new int32 value and returns a pointer to it.

(v int32)

Source from the content-addressed store, hash-verified

14
15// Int32 stores v in a new int32 value and returns a pointer to it.
16func Int32(v int32) *int32 { return &v }
17
18// Int64 stores v in a new int64 value and returns a pointer to it.
19func Int64(v int64) *int64 { return &v }

Callers 15

TestNilExtensionFunction · 0.92
TestMarshalRaceFunction · 0.92
TestDiscardUnknownFunction · 0.92
initFunction · 0.92
makeGoldenFunction · 0.92

Calls

no outgoing calls

Tested by 15

TestNilExtensionFunction · 0.74
TestMarshalRaceFunction · 0.74
TestDiscardUnknownFunction · 0.74
initFunction · 0.74
makeGoldenFunction · 0.74
newTestMessageFunction · 0.74
TestRacyMarshalFunction · 0.74