(ctx *WriteContext, value reflect.Value)
| 248 | } |
| 249 | |
| 250 | func (s *optionalSerializer) WriteData(ctx *WriteContext, value reflect.Value) { |
| 251 | // WriteData assumes the value is present and writes data only (no null/ref flags). |
| 252 | valueField := s.valueField(value) |
| 253 | s.valueSerializer.WriteData(ctx, valueField) |
| 254 | } |
| 255 | |
| 256 | func (s *optionalSerializer) Read(ctx *ReadContext, refMode RefMode, readType bool, hasGenerics bool, value reflect.Value) { |
| 257 | buf := ctx.Buffer() |
nothing calls this directly
no test coverage detected