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

Method writeField0

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

Source from the content-addressed store, hash-verified

31819}
31820
31821func (p *IClientRPCServiceSetStorageGroupResult) writeField0(ctx context.Context, oprot thrift.TProtocol) (err error) {
31822 if p.IsSetSuccess() {
31823 if err := oprot.WriteFieldBegin(ctx, "success", thrift.STRUCT, 0); err != nil {
31824 return thrift.PrependError(fmt.Sprintf("%T write field begin error 0:success: ", p), err) }
31825 if err := p.Success.Write(ctx, oprot); err != nil {
31826 return thrift.PrependError(fmt.Sprintf("%T error writing struct: ", p.Success), err)
31827 }
31828 if err := oprot.WriteFieldEnd(ctx); err != nil {
31829 return thrift.PrependError(fmt.Sprintf("%T write field end error 0:success: ", p), err) }
31830 }
31831 return err
31832}
31833
31834func (p *IClientRPCServiceSetStorageGroupResult) String() string {
31835 if p == nil {

Callers 1

WriteMethod · 0.95

Calls 2

IsSetSuccessMethod · 0.95
WriteMethod · 0.45

Tested by

no test coverage detected