(ext *super.TypeEnum)
| 157 | } |
| 158 | |
| 159 | func (e *Encoder) encodeTypeEnum(ext *super.TypeEnum) (*super.TypeEnum, error) { |
| 160 | symbols := ext.Symbols |
| 161 | typ := e.sctx.LookupTypeEnum(symbols) |
| 162 | e.bytes = append(e.bytes, TypeDefEnum) |
| 163 | e.bytes = binary.AppendUvarint(e.bytes, uint64(len(symbols))) |
| 164 | for _, s := range symbols { |
| 165 | e.bytes = binary.AppendUvarint(e.bytes, uint64(len(s))) |
| 166 | e.bytes = append(e.bytes, s...) |
| 167 | } |
| 168 | return typ, nil |
| 169 | } |
| 170 | |
| 171 | func (e *Encoder) encodeTypeMap(ext *super.TypeMap) (*super.TypeMap, error) { |
| 172 | keyType, err := e.Encode(ext.KeyType) |
no test coverage detected