| 7003 | } |
| 7004 | |
| 7005 | func (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 | |
| 7025 | func (p *TNodeLocations) ReadField2(ctx context.Context, iprot thrift.TProtocol) error { |
| 7026 | _, size, err := iprot.ReadListBegin(ctx) |