ETUUID class documentation
ETUUID : NSObject <NSCopying>An implementation of the Universally Unique Identifier standard.
| Authors | Generated by qmathe |
|---|---|
| Declared in | ETUUID.h |
Overview
When an ETUUID is instantiated, the underlying UUID is generated with the version 4 (aka random) generation scheme. Take note the random scheme used on Linux and BSD platforms is based on a strong random number, unlike other platforms where a simpler random scheme is used. Which means collisions can occur on these platforms if you try to generate ETUUID in a tight loop.
You can use -isEqual: to check the equality between two ETUUID instances.
ETUUID does not have a designated initializer.
Initialization
- + (id) UUID
Returns a new autoreleased UUID object initialized with a random 128-bit binary value.
- + (id) UUIDWithString: (NSString *)aString
Returns an autoreleased UUID object for the given UUID string representation.
- + (ETUUID *) UUIDWithData: (NSData *)aData
Returns an autoreleased UUID object for the given 16-byte NSData.
- - (id) initWithUUID: (const unsigned char*)aUUID
Initializes the UUID object with a 128-bit binary value.
- - (id) initWithString: (NSString *)aString
Initializes the UUID object from a string representation.
- - (id) init
Initializes a UUID object by generating a random 128-bit binary value.
Alternative Representations
- - (NSString *) stringValue
Returns a string representation of the receiver.
- - (const unsigned char*) UUIDValue
Returns a 128-bit binary value representation of the receiver.
- - (NSData *) dataValue
- Description forthcoming.