EncodeFieldBegin encodes a field begin.
(b []byte, t Type, id FieldID)
| 2144 | |
| 2145 | // EncodeFieldBegin encodes a field begin. |
| 2146 | func (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. |
| 2152 | func (BinaryEncoding) DecodeBool(b []byte) bool { |
no outgoing calls
no test coverage detected