(format int16)
| 38 | } |
| 39 | |
| 40 | func (c *CompositeCodec) FormatSupported(format int16) bool { |
| 41 | for _, f := range c.Fields { |
| 42 | if !f.Type.Codec.FormatSupported(format) { |
| 43 | return false |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | return true |
| 48 | } |
| 49 | |
| 50 | func (c *CompositeCodec) PreferredFormat() int16 { |
| 51 | if c.FormatSupported(BinaryFormatCode) { |
no test coverage detected