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

Method writeField1

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

Source from the content-addressed store, hash-verified

1011}
1012
1013func (p *TSStatus) writeField1(ctx context.Context, oprot thrift.TProtocol) (err error) {
1014 if err := oprot.WriteFieldBegin(ctx, "code", thrift.I32, 1); err != nil {
1015 return thrift.PrependError(fmt.Sprintf("%T write field begin error 1:code: ", p), err) }
1016 if err := oprot.WriteI32(ctx, int32(p.Code)); err != nil {
1017 return thrift.PrependError(fmt.Sprintf("%T.code (1) field write error: ", p), err) }
1018 if err := oprot.WriteFieldEnd(ctx); err != nil {
1019 return thrift.PrependError(fmt.Sprintf("%T write field end error 1:code: ", p), err) }
1020 return err
1021}
1022
1023func (p *TSStatus) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) {
1024 if p.IsSetMessage() {

Callers 1

WriteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected