(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value)
| 237 | } |
| 238 | |
| 239 | func (s durationSerializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) { |
| 240 | if refMode != RefModeNone { |
| 241 | ctx.buffer.WriteInt8(NotNullValueFlag) |
| 242 | } |
| 243 | if writeType { |
| 244 | ctx.buffer.WriteUint8(uint8(DURATION)) |
| 245 | } |
| 246 | s.WriteData(ctx, value) |
| 247 | } |
| 248 | |
| 249 | func (s durationSerializer) ReadData(ctx *ReadContext, value reflect.Value) { |
| 250 | err := ctx.Err() |
nothing calls this directly
no test coverage detected