MCPcopy Create free account
hub / github.com/apache/iotdb-client-go / writeField1

Method writeField1

rpc/client.go:4427–4436  ·  view source on GitHub ↗
(ctx context.Context, oprot thrift.TProtocol)

Source from the content-addressed store, hash-verified

4425}
4426
4427func (p *TSPrepareResp) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) {
4428 if err := oprot.WriteFieldBegin(ctx, "status", thrift.STRUCT, 1); err != nil {
4429 return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:status: ", p), err) }
4430 if err := p.Status.Write(ctx, oprot); err != nil {
4431 return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Status), err)
4432 }
4433 if err := oprot.WriteFieldEnd(ctx); err != nil {
4434 return thrift.PrependError(fmt.Sprintf("%T write field end error 1:status: ", p), err) }
4435 return err
4436}
4437
4438func (p *TSPrepareResp) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) {
4439 if p.IsSetParameterCount() {

Callers 1

WriteMethod · 0.95

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected