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

Method ReadField2

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

Source from the content-addressed store, hash-verified

32758}
32759
32760func (p *IClientRPCServiceDeleteStorageGroupsArgs) ReadField2(ctx context.Context, iprot thrift.TProtocol) error {
32761 _, size, err := iprot.ReadListBegin(ctx)
32762 if err != nil {
32763 return thrift.PrependError("error reading list begin: ", err)
32764 }
32765 tSlice := make([]string, 0, size)
32766 p.StorageGroup = tSlice
32767 for i := 0; i < size; i ++ {
32768var _elem407 string
32769 if v, err := iprot.ReadString(ctx); err != nil {
32770 return thrift.PrependError("error reading field 0: ", err)
32771} else {
32772 _elem407 = v
32773}
32774 p.StorageGroup = append(p.StorageGroup, _elem407)
32775 }
32776 if err := iprot.ReadListEnd(ctx); err != nil {
32777 return thrift.PrependError("error reading list end: ", err)
32778 }
32779 return nil
32780}
32781
32782func (p *IClientRPCServiceDeleteStorageGroupsArgs) Write(ctx context.Context, oprot thrift.TProtocol) error {
32783 if err := oprot.WriteStructBegin(ctx, "deleteStorageGroups_args"); err != nil {

Callers 1

ReadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected