// MarshalBinary encodes r to a binary format. func (r *CreateIteratorResponse) MarshalBinary() ([]byte, error) { var pb internal.CreateIteratorResponse if r.Err != nil { pb.Err = proto.String(r.Err.Error()) } return proto.Marshal(&pb) }
// MarshalBinary encodes r to a binary format. func (r *CreateIteratorResponse) MarshalBinary() ([]byte, error) { var pb internal.CreateIteratorResponse if r.Err != nil { pb.Err = proto.String(r.Err.Error()) } pb.Type = proto.Int32(int32(r.Type)) pb.Stats = &internal.IteratorStats{ SeriesN: proto.Int64(int64(r.Stats.SeriesN)), PointN: proto.Int64(int64(r.Stats.PointN)), } return proto.Marshal(&pb) }