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

Method EncodeInt16

thrift/binary.go:2115–2117  ·  view source on GitHub ↗

EncodeInt16 encodes a int16 value.

(b []byte, v int16)

Source from the content-addressed store, hash-verified

2113
2114// EncodeInt16 encodes a int16 value.
2115func (BinaryEncoding) EncodeInt16(b []byte, v int16) {
2116 binary.BigEndian.PutUint16(b, uint16(v))
2117}
2118
2119// EncodeInt32 encodes a int32 value.
2120func (BinaryEncoding) EncodeInt32(b []byte, v int32) {

Callers 3

EncodeEmptyMethod · 0.95
NewNodeInt16Function · 0.80
ToRawMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected