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

Method writeField2

common/common.go:1023–1033  ·  view source on GitHub ↗
(ctx context.Context, oprot thrift.TProtocol)

Source from the content-addressed store, hash-verified

1021}
1022
1023func (p *TSStatus) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) {
1024 if p.IsSetMessage() {
1025 if err := oprot.WriteFieldBegin(ctx, "message", thrift.STRING, 2); err != nil {
1026 return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:message: ", p), err) }
1027 if err := oprot.WriteString(ctx, string(*p.Message)); err != nil {
1028 return thrift.PrependError(fmt.Sprintf("%T.message (2) field write error: ", p), err) }
1029 if err := oprot.WriteFieldEnd(ctx); err != nil {
1030 return thrift.PrependError(fmt.Sprintf("%T write field end error 2:message: ", p), err) }
1031 }
1032 return err
1033}
1034
1035func (p *TSStatus) writeField3(ctx context.Context, oprot thrift.TProtocol) (err error) {
1036 if p.IsSetSubStatus() {

Callers 1

WriteMethod · 0.95

Calls 1

IsSetMessageMethod · 0.95

Tested by

no test coverage detected