Contents

addValue

Adds a signed integer value to the internal integer value of the OSNumber object.

Declaration

virtual void addValue(
 signed long longvalue);

Parameters

  • value:

    The value to be added.

Overview

This function adds values as 64-bit integers, but masks the result by the bit size (see numberOfBits), so addition overflows will not necessarily be the same as for plain C integers.

See Also

Miscellaneous