3 type unknownType struct{}
5 var unknownVal = unknownType{}
7 // unknownValBytes is the raw bytes of the msgpack fixext1 value we
8 // write to represent an unknown value. It's an extension value of
9 // type zero whose value is irrelevant. Since it's irrelevant, we
10 // set it to a single byte whose value is also zero, since that's
11 // the most compact possible representation.
12 var unknownValBytes = []byte{0xd4, 0, 0}
14 func (uv unknownType) MarshalMsgpack() ([]byte, error) {
15 return unknownValBytes, nil