class

Crowbar::Selectors::ByteRange

Inherits Crowbar::Selector < Reference < Object

Selects a static byte index range (e.g. 0...16 or 20..)

Constructors

new(begin_index : Int32, end_index : Int32 | Nil, exclusive : Bool = false, weight : Float64 = 1.0)
Source
new(range : Range(B, E), weight : Float64 = 1.0) forall B, E
Source

Instance methods

begin_index
Source
end_index
Source
exclusive?
Source
select(buffer : Buffer) : Array(Tuple(Int32, Int32))

Returns an array of target ranges {start_index, end_index_exclusive}

Source