// UnmarshalBinary decodes data into r. func (r *CreateIteratorResponse) UnmarshalBinary(data []byte) error { var pb internal.CreateIteratorResponse if err := proto.Unmarshal(data, &pb); err != nil { return err } if pb.Err != nil { r.Err = errors.New(pb.GetErr()) } return nil }
// UnmarshalBinary decodes data into r. func (r *CreateIteratorResponse) UnmarshalBinary(data []byte) error { var pb internal.CreateIteratorResponse if err := proto.Unmarshal(data, &pb); err != nil { return err } if pb.Err != nil { r.Err = errors.New(pb.GetErr()) } r.Type = influxql.DataType(pb.GetType()) if stats := pb.GetStats(); stats != nil { r.Stats.SeriesN = int(stats.GetSeriesN()) r.Stats.PointN = int(stats.GetPointN()) } return nil }