unsigned32BitValue

Returns the OSNumber object's integer value cast as an unsigned 32-bit integer.

Declaration

virtual unsigned int unsigned32BitValue() const; 

Return Value

Returns the OSNumber object's integer value cast as an unsigned 32-bit integer.

Overview

This function merely casts the internal integer value, giving no indication of truncation or other potential conversion problems.

See Also

Miscellaneous

- addValue

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

- free

Deallocates or releases any resources used by the OSNumber instance.

- init(const char *, unsigned int)

Initializes an instance of OSNumber with an unsigned integer value represented as a C string.

- init(unsigned long long, unsigned int)

Initializes an instance of OSNumber with an integer value.

- isEqualTo(const OSMetaClassBase *)

Tests the equality an OSNumber to an arbitrary object.

- isEqualTo(const OSNumber *)

Tests the equality of two OSNumber objects.

- numberOfBits

Returns the number of bits used to represent the OSNumber object's integer value.

- numberOfBytes

Returns the number of bytes used to represent the OSNumber object's integer value.

- serialize

Archives the receiver into the provided OSSerialize object.

- setValue

Replaces the current internal integer value of the OSNumber object by the value given.

- unsigned16BitValue

Returns the OSNumber object's integer value cast as an unsigned 16-bit integer.

- unsigned64BitValue

Returns the OSNumber object's integer value cast as an unsigned 64-bit integer.

- unsigned8BitValue

Returns the OSNumber object's integer value cast as an unsigned 8-bit integer.

- withNumber(const char *, unsigned int)

Creates and initializes an instance of OSNumber with an unsigned integer value represented as a C string.

- withNumber(unsigned long long, unsigned int)

Creates and initializes an instance of OSNumber with an integer value.