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

Method writeField2

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

Source from the content-addressed store, hash-verified

4436}
4437
4438func (p *TSPrepareResp) writeField2(ctx context.Context, oprot thrift.TProtocol) (err error) {
4439 if p.IsSetParameterCount() {
4440 if err := oprot.WriteFieldBegin(ctx, "parameterCount", thrift.I32, 2); err != nil {
4441 return thrift.PrependError(fmt.Sprintf("%T write field begin error 2:parameterCount: ", p), err) }
4442 if err := oprot.WriteI32(ctx, int32(*p.ParameterCount)); err != nil {
4443 return thrift.PrependError(fmt.Sprintf("%T.parameterCount (2) field write error: ", p), err) }
4444 if err := oprot.WriteFieldEnd(ctx); err != nil {
4445 return thrift.PrependError(fmt.Sprintf("%T write field end error 2:parameterCount: ", p), err) }
4446 }
4447 return err
4448}
4449
4450func (p *TSPrepareResp) Equals(other *TSPrepareResp) bool {
4451 if p == other {

Callers 1

WriteMethod · 0.95

Calls 1

IsSetParameterCountMethod · 0.95

Tested by

no test coverage detected