company logo

Binary :: operator== - Check binary data blocks to be identical

This operator is implemented for convenience instead of calling compare().

The function checks whether two binary data blocks are identical. Two binary blocks are identical, when having the same size and the same content.

Return value:  Success ( bool  )

The value is true when the function was executed successfully. Otherwise the value is set to false.

Implementation details

bool Binary  :: operator== ( odaba::Binary &cBinary )

The function returns true, when the current binary block and the binary data block passed in cBinary are identical. Otherwise, the function returns false.

The function returns false, when the first byte differing is less in the current data block than in cBinary. When data block areas differ in size, but are identical in the smaller part, the larger binary data block is considered as not equal.

  • cBinary - Binary data block handle

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