(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value)
| 354 | } |
| 355 | |
| 356 | func (s uint32SliceSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) { |
| 357 | done, typeId := readSliceRefAndType(ctx, refMode, readType, value) |
| 358 | if done || ctx.HasError() { |
| 359 | return |
| 360 | } |
| 361 | if readType && typeId != uint32(UINT32_ARRAY) { |
| 362 | ctx.SetError(DeserializationErrorf("slice type mismatch: expected UINT32_ARRAY (%d), got %d", UINT32_ARRAY, typeId)) |
| 363 | return |
| 364 | } |
| 365 | s.ReadData(ctx, value) |
| 366 | } |
| 367 | |
| 368 | func (s uint32SliceSerializer) ReadWithTypeInfo(ctx *ReadContext, refMode RefMode, typeInfo *TypeInfo, value reflect.Value) { |
| 369 | s.Read(ctx, refMode, false, false, value) |
no test coverage detected