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

Method ReadField3

common/common.go:959–977  ·  view source on GitHub ↗
(ctx context.Context, iprot thrift.TProtocol)

Source from the content-addressed store, hash-verified

957}
958
959func (p *TSStatus) ReadField3(ctx context.Context, iprot thrift.TProtocol) error {
960 _, size, err := iprot.ReadListBegin(ctx)
961 if err != nil {
962 return thrift.PrependError("error reading list begin: ", err)
963 }
964 tSlice := make([]*TSStatus, 0, size)
965 p.SubStatus = tSlice
966 for i := 0; i < size; i ++ {
967 _elem0 := &TSStatus{}
968 if err := _elem0.Read(ctx, iprot); err != nil {
969 return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem0), err)
970 }
971 p.SubStatus = append(p.SubStatus, _elem0)
972 }
973 if err := iprot.ReadListEnd(ctx); err != nil {
974 return thrift.PrependError("error reading list end: ", err)
975 }
976 return nil
977}
978
979func (p *TSStatus) ReadField4(ctx context.Context, iprot thrift.TProtocol) error {
980 p.RedirectNode = &TEndPoint{}

Callers 1

ReadMethod · 0.95

Calls 1

ReadMethod · 0.95

Tested by

no test coverage detected