company logo

Binary :: indexOf - Position in binary area

The function returns the position of the content of the binary area passed in cBinary within a binary area of the current instance.

The function returns the position (relative 0) of the first occurrence of data looked up. When not being found, the function returns -1.

Return value:  Position in collection ( int32  )

The position of an element in a collection is beginning with 0 for the first element.

Implementation overview

Implementation details

  1. Search for binary block
    int32 Binary  :: indexOf ( odaba::Binary &cBinary )

    The function searched for the first occurrence of cBinary.

    • cBinary - Binary data block handle

      Constant reference to a binary data block handle, which may contain binary data up to 2 GB.

  2. to list
  3. Star searching at position
    int32 Binary  :: indexOf ( odaba::Binary &cBinary, int32 iPosition )

    The function returns the position of the first occurrence of cBinary starting searching at position passed in iPosition.

    • cBinary - Binary data block handle

      Constant reference to a binary data block handle, which may contain binary data up to 2 GB.

    • iPosition - Position in collection

      The position of an element in a collection is beginning with 0 for the first element.

  4. to list