(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value)
| 247 | } |
| 248 | |
| 249 | func (s sliceDynSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) { |
| 250 | done, typeId := readSliceRefAndType(ctx, refMode, readType, value) |
| 251 | if done || ctx.HasError() { |
| 252 | return |
| 253 | } |
| 254 | if readType && typeId != uint32(LIST) { |
| 255 | ctx.SetError(DeserializationErrorf("slice type mismatch: expected LIST (%d), got %d", LIST, typeId)) |
| 256 | return |
| 257 | } |
| 258 | s.ReadData(ctx, value) |
| 259 | } |
| 260 | |
| 261 | func (s sliceDynSerializer) ReadData(ctx *ReadContext, value reflect.Value) { |
| 262 | s.readData(ctx, value, -1) |
no test coverage detected