(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value)
| 1171 | } |
| 1172 | |
| 1173 | func (s float16SliceSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) { |
| 1174 | done, typeId := readSliceRefAndType(ctx, refMode, readType, value) |
| 1175 | if done || ctx.HasError() { |
| 1176 | return |
| 1177 | } |
| 1178 | if readType && typeId != uint32(FLOAT16_ARRAY) { |
| 1179 | ctx.SetError(DeserializationErrorf("slice type mismatch: expected FLOAT16_ARRAY (%d), got %d", FLOAT16_ARRAY, typeId)) |
| 1180 | return |
| 1181 | } |
| 1182 | s.ReadData(ctx, value) |
| 1183 | } |
| 1184 | |
| 1185 | func (s float16SliceSerializer) ReadWithTypeInfo(ctx *ReadContext, refMode RefMode, typeInfo *TypeInfo, value reflect.Value) { |
| 1186 | s.Read(ctx, refMode, false, false, value) |
no test coverage detected