(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value)
| 202 | } |
| 203 | |
| 204 | func (s int16SliceSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) { |
| 205 | done, typeId := readSliceRefAndType(ctx, refMode, readType, value) |
| 206 | if done || ctx.HasError() { |
| 207 | return |
| 208 | } |
| 209 | if readType && typeId != uint32(INT16_ARRAY) { |
| 210 | ctx.SetError(DeserializationErrorf("slice type mismatch: expected INT16_ARRAY (%d), got %d", INT16_ARRAY, typeId)) |
| 211 | return |
| 212 | } |
| 213 | s.ReadData(ctx, value) |
| 214 | } |
| 215 | |
| 216 | func (s int16SliceSerializer) ReadWithTypeInfo(ctx *ReadContext, refMode RefMode, typeInfo *TypeInfo, value reflect.Value) { |
| 217 | s.Read(ctx, refMode, false, false, value) |
no test coverage detected