class
Crowbar::Selectors::ByteRange
- Crowbar::Selectors::ByteRange
- Crowbar::Selector
- Reference
- Object
Overview
Selects a static byte index range (e.g. 0...16 or 20..)
Defined in:
crowbar/selectors/byte_range.crConstructors
- .new(begin_index : Int32, end_index : Int32 | Nil, exclusive : Bool = false, weight : Float64 = 1.0)
- .new(range : Range(B, E), weight : Float64 = 1.0) forall B, E
Instance Method Summary
- #begin_index : Int32
- #end_index : Int32 | Nil
- #exclusive? : Bool
-
#select(buffer : Buffer) : Array(Tuple(Int32, Int32))
Returns an array of target ranges {start_index, end_index_exclusive}
Instance methods inherited from class Crowbar::Selector
&(other : Selector) : Selector
&,
|(other : Selector) : Selector
|,
~ : Selector
~,
select(buffer : Buffer) : Array(Tuple(Int32, Int32))
select,
weight : Float64
weight,
weight=(weight : Float64)
weight=
Constructor methods inherited from class Crowbar::Selector
new(weight : Float64 = 1.0)
new
Constructor Detail
def self.new(begin_index : Int32, end_index : Int32 | Nil, exclusive : Bool = false, weight : Float64 = 1.0)
#
Instance Method Detail
Description copied from class Crowbar::Selector
Returns an array of target ranges {start_index, end_index_exclusive}