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

Method EncodeFieldBegin

thrift/binary.go:2146–2149  ·  view source on GitHub ↗

EncodeFieldBegin encodes a field begin.

(b []byte, t Type, id FieldID)

Source from the content-addressed store, hash-verified

2144
2145// EncodeFieldBegin encodes a field begin.
2146func (BinaryEncoding) EncodeFieldBegin(b []byte, t Type, id FieldID) {
2147 b[0] = byte(t)
2148 binary.BigEndian.PutUint16(b[1:], uint16(id))
2149}
2150
2151// EncodeFieldEnd encodes a field end.
2152func (BinaryEncoding) DecodeBool(b []byte) bool {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected