(ctx *WriteContext, value reflect.Value)
| 35 | type idLimitExtSerializer struct{} |
| 36 | |
| 37 | func (s *idLimitExtSerializer) WriteData(ctx *WriteContext, value reflect.Value) { |
| 38 | if value.Kind() == reflect.Ptr { |
| 39 | value = value.Elem() |
| 40 | } |
| 41 | ctx.Buffer().WriteVarint32(value.Interface().(idLimitExt).ID) |
| 42 | } |
| 43 | |
| 44 | func (s *idLimitExtSerializer) ReadData(ctx *ReadContext, value reflect.Value) { |
| 45 | value.Set(reflect.ValueOf(idLimitExt{ID: ctx.Buffer().ReadVarint32(ctx.Err())})) |
nothing calls this directly
no test coverage detected