Contents

withNumber

Allocates an OSNumber object with value and size.

Declaration

static OSNumberPtr withNumber(uint64_t value, size_t numberOfBits);

Parameters

  • value:

    Value the OSNumber holds.

  • numberOfBits:

    Size of the value. Only 8, 16, 32, or 64 are valid sizes.

Return Value

NULL on failure, otherwise the allocated OSNumber with reference count 1 to be released by the caller.

Discussion

Allocates an OSNumber object with value and size.

See Also

Creating a Number Object