company logo

Binary :: index - Get byte value at position

The function returns the byte value at requested position iPosition . The byte value is returned as integer ( int32 ) with a value between 0 and 255 .

When the position passes the end of the binary data block, the function returns -1 . When the position is invalid (negative), the function throws an exception (589).

Return value:  Integer value ( int32  )

The value is passed as platform independent 32-bit integer value.

Implementation details

int32 Binary  :: index ( int32 iPosition )
  • iPosition - Position in collection

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