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

Method writeField0

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

Source from the content-addressed store, hash-verified

33305}
33306
33307func (p *IClientRPCServiceInsertStringRecordResult) writeField0(ctx context.Context, oprot thrift.TProtocol) (err error) {
33308 if p.IsSetSuccess() {
33309 if err := oprot.WriteFieldBegin(ctx, "success", thrift.STRUCT, 0); err != nil {
33310 return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err) }
33311 if err := p.Success.Write(ctx, oprot); err != nil {
33312 return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
33313 }
33314 if err := oprot.WriteFieldEnd(ctx); err != nil {
33315 return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err) }
33316 }
33317 return err
33318}
33319
33320func (p *IClientRPCServiceInsertStringRecordResult) String() string {
33321 if p == nil {

Callers 1

WriteMethod · 0.95

Calls 2

IsSetSuccessMethod · 0.95
WriteMethod · 0.45

Tested by

no test coverage detected