(ctx context.Context, oprot thrift.TProtocol)
| 4411 | } |
| 4412 | |
| 4413 | func (p *TSPrepareResp) Write(ctx context.Context, oprot thrift.TProtocol) error { |
| 4414 | if err := oprot.WriteStructBegin(ctx, "TSPrepareResp"); err != nil { |
| 4415 | return thrift.PrependError(fmt.Sprintf("%T write struct begin error: ", p), err) } |
| 4416 | if p != nil { |
| 4417 | if err := p.writeField1(ctx, oprot); err != nil { return err } |
| 4418 | if err := p.writeField2(ctx, oprot); err != nil { return err } |
| 4419 | } |
| 4420 | if err := oprot.WriteFieldStop(ctx); err != nil { |
| 4421 | return thrift.PrependError("write field stop error: ", err) } |
| 4422 | if err := oprot.WriteStructEnd(ctx); err != nil { |
| 4423 | return thrift.PrependError("write struct stop error: ", err) } |
| 4424 | return nil |
| 4425 | } |
| 4426 | |
| 4427 | func (p *TSPrepareResp) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) { |
| 4428 | if err := oprot.WriteFieldBegin(ctx, "status", thrift.STRUCT, 1); err != nil { |
nothing calls this directly
no test coverage detected