Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
module
Crowbar::RangeUtils
Helper algorithms for normalizing, intersecting, unioning, and inverting byte index ranges.
Class methods
intersect
(ranges_a :
Array
(
Tuple
(
Int32
,
Int32
)), ranges_b :
Array
(
Tuple
(
Int32
,
Int32
))) :
Array
(
Tuple
(
Int32
,
Int32
))
Source
invert
(ranges :
Array
(
Tuple
(
Int32
,
Int32
)), total_size :
Int32
) :
Array
(
Tuple
(
Int32
,
Int32
))
Source
normalize
(ranges :
Array
(
Tuple
(
Int32
,
Int32
))) :
Array
(
Tuple
(
Int32
,
Int32
))
Source
union
(ranges_a :
Array
(
Tuple
(
Int32
,
Int32
)), ranges_b :
Array
(
Tuple
(
Int32
,
Int32
))) :
Array
(
Tuple
(
Int32
,
Int32
))
Source