(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value)
| 430 | } |
| 431 | |
| 432 | func (s float32SliceSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) { |
| 433 | done, typeId := readSliceRefAndType(ctx, refMode, readType, value) |
| 434 | if done || ctx.HasError() { |
| 435 | return |
| 436 | } |
| 437 | if readType && typeId != uint32(FLOAT32_ARRAY) { |
| 438 | ctx.SetError(DeserializationErrorf("slice type mismatch: expected FLOAT32_ARRAY (%d), got %d", FLOAT32_ARRAY, typeId)) |
| 439 | return |
| 440 | } |
| 441 | s.ReadData(ctx, value) |
| 442 | } |
| 443 | |
| 444 | func (s float32SliceSerializer) ReadWithTypeInfo(ctx *ReadContext, refMode RefMode, typeInfo *TypeInfo, value reflect.Value) { |
| 445 | s.Read(ctx, refMode, false, false, value) |
no test coverage detected