(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value)
| 316 | } |
| 317 | |
| 318 | func (s uint16SliceSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) { |
| 319 | done, typeId := readSliceRefAndType(ctx, refMode, readType, value) |
| 320 | if done || ctx.HasError() { |
| 321 | return |
| 322 | } |
| 323 | if readType && typeId != uint32(UINT16_ARRAY) { |
| 324 | ctx.SetError(DeserializationErrorf("slice type mismatch: expected UINT16_ARRAY (%d), got %d", UINT16_ARRAY, typeId)) |
| 325 | return |
| 326 | } |
| 327 | s.ReadData(ctx, value) |
| 328 | } |
| 329 | |
| 330 | func (s uint16SliceSerializer) ReadWithTypeInfo(ctx *ReadContext, refMode RefMode, typeInfo *TypeInfo, value reflect.Value) { |
| 331 | s.Read(ctx, refMode, false, false, value) |
no test coverage detected