(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value)
| 129 | } |
| 130 | |
| 131 | func (s stringSerializer) Write(ctx *WriteContext, refMode RefMode, writeType bool, hasGenerics bool, value reflect.Value) { |
| 132 | if refMode != RefModeNone { |
| 133 | // String is non-primitive, needs ref flag |
| 134 | ctx.buffer.WriteInt8(NotNullValueFlag) |
| 135 | } |
| 136 | if writeType { |
| 137 | ctx.buffer.WriteUint8(uint8(STRING)) |
| 138 | } |
| 139 | s.WriteData(ctx, value) |
| 140 | } |
| 141 | |
| 142 | func (s stringSerializer) ReadData(ctx *ReadContext, value reflect.Value) { |
| 143 | err := ctx.Err() |
nothing calls this directly
no test coverage detected