(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value)
| 1483 | } |
| 1484 | |
| 1485 | func (s bfloat16SliceSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) { |
| 1486 | done, typeId := readSliceRefAndType(ctx, refMode, readType, value) |
| 1487 | if done || ctx.HasError() { |
| 1488 | return |
| 1489 | } |
| 1490 | if readType && typeId != uint32(BFLOAT16_ARRAY) { |
| 1491 | ctx.SetError(DeserializationErrorf("slice type mismatch: expected BFLOAT16_ARRAY (%d), got %d", BFLOAT16_ARRAY, typeId)) |
| 1492 | return |
| 1493 | } |
| 1494 | s.ReadData(ctx, value) |
| 1495 | } |
| 1496 | |
| 1497 | func (s bfloat16SliceSerializer) ReadWithTypeInfo(ctx *ReadContext, refMode RefMode, typeInfo *TypeInfo, value reflect.Value) { |
| 1498 | s.Read(ctx, refMode, false, false, value) |
no test coverage detected