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

Method ReadField1

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

Source from the content-addressed store, hash-verified

7003}
7004
7005func (p *TNodeLocations) ReadField1(ctx context.Context, iprot thrift.TProtocol) error {
7006 _, size, err := iprot.ReadListBegin(ctx)
7007 if err != nil {
7008 return thrift.PrependError("error reading list begin: ", err)
7009 }
7010 tSlice := make([]*TConfigNodeLocation, 0, size)
7011 p.ConfigNodeLocations = tSlice
7012 for i := 0; i < size; i ++ {
7013 _elem34 := &TConfigNodeLocation{}
7014 if err := _elem34.Read(ctx, iprot); err != nil {
7015 return thrift.PrependError(fmt.Sprintf("%T error reading struct: ", _elem34), err)
7016 }
7017 p.ConfigNodeLocations = append(p.ConfigNodeLocations, _elem34)
7018 }
7019 if err := iprot.ReadListEnd(ctx); err != nil {
7020 return thrift.PrependError("error reading list end: ", err)
7021 }
7022 return nil
7023}
7024
7025func (p *TNodeLocations) ReadField2(ctx context.Context, iprot thrift.TProtocol) error {
7026 _, size, err := iprot.ReadListBegin(ctx)

Callers 1

ReadMethod · 0.95

Calls 1

ReadMethod · 0.95

Tested by

no test coverage detected