| 196 | return num_rows_safe; |
| 197 | } |
| 198 | static int64_t FixVarBinaryAccess(int num_bytes_accessed_together, int64_t num_rows, |
| 199 | const uint32_t* offsets) { |
| 200 | // Do not process rows that could read past the end of the buffer using N |
| 201 | // byte loads/stores. |
| 202 | // |
| 203 | int64_t num_rows_safe = num_rows; |
| 204 | while (num_rows_safe > 0 && |
| 205 | offsets[num_rows_safe] + num_bytes_accessed_together > offsets[num_rows]) { |
| 206 | --num_rows_safe; |
| 207 | } |
| 208 | return num_rows_safe; |
| 209 | } |
| 210 | static int FixSelection(int64_t num_rows_safe, int num_selected, |
| 211 | const uint16_t* selection) { |
| 212 | int num_selected_safe = num_selected; |
nothing calls this directly
no outgoing calls
no test coverage detected