Lines Matching refs:run
37 inline bool operator==(const block_run &run) const;
38 inline bool operator!=(const block_run &run) const;
40 inline bool MergeableWith(block_run run) const;
309 block_run::operator==(const block_run &run) const
311 return allocation_group == run.allocation_group
312 && start == run.start
313 && length == run.length;
318 block_run::operator!=(const block_run &run) const
320 return allocation_group != run.allocation_group
321 || start != run.start
322 || length != run.length;
334 block_run::MergeableWith(block_run run) const
336 // 65535 is the maximum allowed run size for BFS
337 return allocation_group == run.allocation_group
338 && Start() + Length() == run.Start()
339 && (uint32)Length() + run.Length() <= MAX_BLOCK_RUN_LENGTH;
355 block_run run;
356 run.allocation_group = HOST_ENDIAN_TO_BFS_INT32(group);
357 run.start = HOST_ENDIAN_TO_BFS_INT16(start);
358 run.length = HOST_ENDIAN_TO_BFS_INT16(length);
359 return run;