(ctx *ReadContext, value reflect.Value)
| 728 | } |
| 729 | |
| 730 | func (s uint64ArraySerializer) ReadData(ctx *ReadContext, value reflect.Value) { |
| 731 | buf := ctx.Buffer() |
| 732 | err := ctx.Err() |
| 733 | size := ctx.ReadBinaryLength() |
| 734 | length, ok := checkWireArraySize(ctx, size, 8, value) |
| 735 | if !ok { |
| 736 | return |
| 737 | } |
| 738 | if length > 0 { |
| 739 | if isLittleEndian { |
| 740 | ptr := value.Addr().UnsafePointer() |
| 741 | buf.Read(unsafe.Slice((*byte)(ptr), size)) |
| 742 | } else { |
| 743 | for i := 0; i < length; i++ { |
| 744 | value.Index(i).SetUint(uint64(buf.ReadInt64(err))) |
| 745 | } |
| 746 | } |
| 747 | } |
| 748 | } |
| 749 | |
| 750 | func (s uint64ArraySerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) { |
| 751 | done := readArrayRefAndType(ctx, refMode, readType, value) |
no test coverage detected