@@ -209,7 +209,7 @@ pub const FieldParser = struct {
209
209
210
210
/// Gets the current start position
211
211
pub fn startPos (self : * const FieldParser ) u64 {
212
- const base = self ._state .start_chunk * 64 + self ._state .start_chunk_pos ;
212
+ const base = self ._state .start_chunk * chunk_size + self ._state .start_chunk_pos ;
213
213
if (self ._state .skip ) {
214
214
return base + 1 ;
215
215
}
@@ -223,7 +223,7 @@ pub const FieldParser = struct {
223
223
224
224
/// Returns whether has next chunk
225
225
fn hasNextChunk (self : * const FieldParser ) bool {
226
- return self ._state .next_chunk * 64 < self ._text .len ;
226
+ return self ._state .next_chunk * chunk_size < self ._text .len ;
227
227
}
228
228
229
229
/// reates match bit string
@@ -270,7 +270,7 @@ pub const FieldParser = struct {
270
270
self ._state .next_chunk += 1 ;
271
271
}
272
272
273
- const next_chunk_start = self ._state .next_chunk * 64 ;
273
+ const next_chunk_start = self ._state .next_chunk * chunk_size ;
274
274
assert (next_chunk_start < self ._text .len );
275
275
276
276
const sub_text = self ._text [next_chunk_start .. ];
@@ -372,7 +372,7 @@ pub const FieldParser = struct {
372
372
}
373
373
374
374
const chunk_end = @ctz (self ._state .field_separators );
375
- const t_end = (self ._state .end_chunk * 64 ) + chunk_end ;
375
+ const t_end = (self ._state .end_chunk * chunk_size ) + chunk_end ;
376
376
const end_pos = @min (self ._text .len - 1 , t_end );
377
377
assert (self ._state .end_chunk >= self ._state .start_chunk );
378
378
0 commit comments