MCPcopy Create free account
hub / github.com/cloudwego/dynamicgo / EncodeInt32

Method EncodeInt32

proto/protowire/encode.go:156–158  ·  view source on GitHub ↗
(b []byte, v int32)

Source from the content-addressed store, hash-verified

154}
155
156func (BinaryEncoder) EncodeInt32(b []byte, v int32) []byte {
157 return AppendVarint(b, uint64(v))
158}
159
160func (BinaryEncoder) EncodeSint32(b []byte, v int32) []byte {
161 return AppendVarint(b, EncodeZigZag(int64(v)))

Callers 4

NewNodeInt32Function · 0.45
ToRawMethod · 0.45
runTestsFunction · 0.45
WriteInt32Method · 0.45

Calls 1

AppendVarintFunction · 0.85

Tested by 1

runTestsFunction · 0.36