(ctx *ReadContext, value reflect.Value)
| 142 | } |
| 143 | |
| 144 | func (s int8ArraySerializer) ReadData(ctx *ReadContext, value reflect.Value) { |
| 145 | buf := ctx.Buffer() |
| 146 | length := ctx.ReadBinaryLength() |
| 147 | if _, ok := checkWireArraySize(ctx, length, 1, value); !ok { |
| 148 | return |
| 149 | } |
| 150 | if length > 0 { |
| 151 | // Direct memory copy - int8 is 1 byte |
| 152 | ptr := value.Addr().UnsafePointer() |
| 153 | buf.Read(unsafe.Slice((*byte)(ptr), length)) |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | func (s int8ArraySerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) { |
| 158 | done := readArrayRefAndType(ctx, refMode, readType, value) |
no test coverage detected