(ctx *ReadContext, value reflect.Value)
| 83 | } |
| 84 | |
| 85 | func (s boolArraySerializer) ReadData(ctx *ReadContext, value reflect.Value) { |
| 86 | buf := ctx.Buffer() |
| 87 | length := ctx.ReadBinaryLength() |
| 88 | if _, ok := checkWireArraySize(ctx, length, 1, value); !ok { |
| 89 | return |
| 90 | } |
| 91 | if length > 0 { |
| 92 | // Direct memory copy - bool is 1 byte in Go |
| 93 | ptr := value.Addr().UnsafePointer() |
| 94 | buf.Read(unsafe.Slice((*byte)(ptr), length)) |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | func (s boolArraySerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) { |
| 99 | done := readArrayRefAndType(ctx, refMode, readType, value) |
no test coverage detected