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

Method writeField0

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

Source from the content-addressed store, hash-verified

32017}
32018
32019func (p *IClientRPCServiceCreateTimeseriesResult) writeField0(ctx context.Context, oprot thrift.TProtocol) (err error) {
32020 if p.IsSetSuccess() {
32021 if err := oprot.WriteFieldBegin(ctx, "success", thrift.STRUCT, 0); err != nil {
32022 return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err) }
32023 if err := p.Success.Write(ctx, oprot); err != nil {
32024 return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
32025 }
32026 if err := oprot.WriteFieldEnd(ctx); err != nil {
32027 return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err) }
32028 }
32029 return err
32030}
32031
32032func (p *IClientRPCServiceCreateTimeseriesResult) String() string {
32033 if p == nil {

Callers 1

WriteMethod · 0.95

Calls 2

IsSetSuccessMethod · 0.95
WriteMethod · 0.45

Tested by

no test coverage detected