Marshal encodes v into a binary representation of the value in the kafka data format. If v is a, or contains struct types, the kafka struct fields are interpreted and may contain one of these values: nullable valid on bytes and strings, encodes as a nullable value compact valid on strings, en
(v interface{})
| 72 | // encode types based on specific versions of kafka APIs, use the Version type |
| 73 | // instead. |
| 74 | func Marshal(v interface{}) ([]byte, error) { |
| 75 | return protocol.Marshal(-1, v) |
| 76 | } |
| 77 | |
| 78 | // Unmarshal decodes a binary representation from b into v. |
| 79 | // |