← All compilation units

Flyology_SIMD.Algorithms.Stream_Element_Arrays.Scalar

Description

Direct scalar stream-element byte classification.

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 scalar backend without allocating or copying either array.

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.