(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value)
| 145 | } |
| 146 | |
| 147 | func (s primitiveListSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) { |
| 148 | done, typeID := readSliceRefAndType(ctx, refMode, readType, value) |
| 149 | if done || ctx.HasError() { |
| 150 | return |
| 151 | } |
| 152 | if readType && typeID != uint32(LIST) { |
| 153 | ctx.SetError(DeserializationErrorf("slice type mismatch: expected LIST (%d), got %d", LIST, typeID)) |
| 154 | return |
| 155 | } |
| 156 | s.ReadData(ctx, value) |
| 157 | } |
| 158 | |
| 159 | func (s primitiveListSerializer) ReadWithTypeInfo(ctx *ReadContext, refMode RefMode, typeInfo *TypeInfo, value reflect.Value) { |
| 160 | s.Read(ctx, refMode, false, false, value) |
no test coverage detected