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

Method writeField0

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

Source from the content-addressed store, hash-verified

30458}
30459
30460func (p *IClientRPCServiceCloseOperationResult) writeField0(ctx context.Context, oprot thrift.TProtocol) (err error) {
30461 if p.IsSetSuccess() {
30462 if err := oprot.WriteFieldBegin(ctx, "success", thrift.STRUCT, 0); err != nil {
30463 return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err) }
30464 if err := p.Success.Write(ctx, oprot); err != nil {
30465 return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
30466 }
30467 if err := oprot.WriteFieldEnd(ctx); err != nil {
30468 return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err) }
30469 }
30470 return err
30471}
30472
30473func (p *IClientRPCServiceCloseOperationResult) String() string {
30474 if p == nil {

Callers 1

WriteMethod · 0.95

Calls 2

IsSetSuccessMethod · 0.95
WriteMethod · 0.45

Tested by

no test coverage detected