(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value)
| 283 | } |
| 284 | |
| 285 | func (s *sliceSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) { |
| 286 | done, typeId := readSliceRefAndType(ctx, refMode, readType, value) |
| 287 | if done || ctx.HasError() { |
| 288 | return |
| 289 | } |
| 290 | if readType && typeId != uint32(LIST) { |
| 291 | ctx.SetError(DeserializationErrorf("slice type mismatch: expected LIST (%d), got %d", LIST, typeId)) |
| 292 | return |
| 293 | } |
| 294 | s.ReadData(ctx, value) |
| 295 | } |
| 296 | |
| 297 | func (s *sliceSerializer) ReadWithTypeInfo(ctx *ReadContext, refMode RefMode, typeInfo *TypeInfo, value reflect.Value) { |
| 298 | // typeInfo is already read, don't read it again |
no test coverage detected