(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value)
| 164 | } |
| 165 | |
| 166 | func (s int8SliceSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) { |
| 167 | done, typeId := readSliceRefAndType(ctx, refMode, readType, value) |
| 168 | if done || ctx.HasError() { |
| 169 | return |
| 170 | } |
| 171 | if readType && typeId != uint32(INT8_ARRAY) { |
| 172 | ctx.SetError(DeserializationErrorf("slice type mismatch: expected INT8_ARRAY (%d), got %d", INT8_ARRAY, typeId)) |
| 173 | return |
| 174 | } |
| 175 | s.ReadData(ctx, value) |
| 176 | } |
| 177 | |
| 178 | func (s int8SliceSerializer) ReadWithTypeInfo(ctx *ReadContext, refMode RefMode, typeInfo *TypeInfo, value reflect.Value) { |
| 179 | s.Read(ctx, refMode, false, false, value) |
no test coverage detected