class
Crowbar::Selectors::Stride
- Crowbar::Selectors::Stride
- Crowbar::Selector
- Reference
- Object
Overview
Selects periodic byte slices at regular intervals (e.g. every 4th byte, alternating words, audio samples).
Defined in:
crowbar/selectors/stride.crConstructors
Instance Method Summary
- #length : Int32
- #offset : Int32
-
#select(buffer : Buffer) : Array(Tuple(Int32, Int32))
Returns an array of target ranges {start_index, end_index_exclusive}
- #step : Int32
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
Instance Method Detail
Description copied from class Crowbar::Selector
Returns an array of target ranges {start_index, end_index_exclusive}