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

Method ReadField2

rpc/client.go:32512–32532  ·  view source on GitHub ↗
(ctx context.Context, iprot thrift.TProtocol)

Source from the content-addressed store, hash-verified

32510}
32511
32512func (p *IClientRPCServiceDeleteTimeseriesArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error {
32513 _, size, err := iprot.ReadListBegin(ctx)
32514 if err != nil {
32515 return thrift.PrependError("error reading list begin: ", err)
32516 }
32517 tSlice := make([]string, 0, size)
32518 p.Path = tSlice
32519 for i := 0; i < size; i ++ {
32520var _elem406 string
32521 if v, err := iprot.ReadString(ctx); err != nil {
32522 return thrift.PrependError("error reading field 0: ", err)
32523} else {
32524 _elem406 = v
32525}
32526 p.Path = append(p.Path, _elem406)
32527 }
32528 if err := iprot.ReadListEnd(ctx); err != nil {
32529 return thrift.PrependError("error reading list end: ", err)
32530 }
32531 return nil
32532}
32533
32534func (p *IClientRPCServiceDeleteTimeseriesArgs) Write(ctx context.Context, oprot thrift.TProtocol) error {
32535 if err := oprot.WriteStructBegin(ctx, "deleteTimeseries_args"); err != nil {

Callers 1

ReadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected