Class that keeps track of line starts, used for line size verification.
More...
Class that keeps track of line starts, used for line size verification.
◆ LinePosition() [1/2]
| duckdb::LinePosition::LinePosition |
( |
| ) |
|
|
inline |
◆ LinePosition() [2/2]
| duckdb::LinePosition::LinePosition |
( |
idx_t | buffer_idx_p, |
|
|
idx_t | buffer_pos_p, |
|
|
idx_t | buffer_size_p ) |
|
inline |
167158 : buffer_pos(buffer_pos_p), buffer_size(buffer_size_p), buffer_idx(buffer_idx_p) {
167159 }
◆ operator-()
| idx_t duckdb::LinePosition::operator- |
( |
const LinePosition & | other | ) |
const |
|
inline |
167161 {
167162 if (other.buffer_idx == buffer_idx) {
167163 return buffer_pos - other.buffer_pos;
167164 }
167165 return other.buffer_size - other.buffer_pos + buffer_pos;
167166 }
◆ operator==()
| bool duckdb::LinePosition::operator== |
( |
const LinePosition & | other | ) |
const |
|
inline |
167168 {
167169 return buffer_pos == other.buffer_pos && buffer_idx == other.buffer_idx && buffer_size == other.buffer_size;
167170 }
◆ GetGlobalPosition()
| idx_t duckdb::LinePosition::GetGlobalPosition |
( |
idx_t | requested_buffer_size, |
|
|
bool | first_char_nl = false ) const |
|
inline |
167172 {
167173 return requested_buffer_size * buffer_idx + buffer_pos + first_char_nl;
167174 }
The documentation for this class was generated from the following file: