Description
Stream-element byte classification instantiated with the compiled native backend. The scalar build remains a valid implementation of this package.
Find_First_Of
function Find_First_Of
(Data : Ada.Streams.Stream_Element_Array; Needles : Ada.Streams.Stream_Element_Array)
return Search_Result
Return the first matching actual index through the compiled native backend without allocating or copying either array. A scalar library build retains the same semantics through its native fallback.
Parameters
- Data
The complete stream-element array to search.
- Needles
The byte values that constitute the small set.
Return value
A found flag and, when found, the first matching actual index.
Search_Result
subtype Search_Result is Flyology_SIMD.Algorithms.Stream_Element_Arrays.Search_Result;
Result of a stream-element search. Index is meaningful only when Found is True.