File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -278,7 +278,11 @@ pub struct Stats {
278
278
/// Contains information that can be used to get a selection vector. If `has_vector` is false, that
279
279
/// indicates there is no selection vector to consider. It is always possible to get a vector out of
280
280
/// a `DvInfo`, but if `has_vector` is false it will just be an empty vector (indicating all
281
- /// selected).
281
+ /// selected). Without this there's no way for a connector using ffi to know if a &DvInfo actually
282
+ /// has a vector in it. We have has_vector() on the rust side, but this isn't exposed via ffi. So
283
+ /// this just wraps the &DvInfo in another struct which includes a boolean that says if there is a
284
+ /// dv to consider or not. This allows engines to ignore dv info if there isn't any without needing
285
+ /// to make another ffi call at all.
282
286
#[ repr( C ) ]
283
287
pub struct CDvInfo < ' a > {
284
288
info : & ' a DvInfo ,
You can’t perform that action at this time.
0 commit comments