Overview | Namespace | Class | Index | Help |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
Note: lexical ordering is not temporal ordering!
Note: For equalnesschecking, a memcmp(pUUID1,pUUID2,16) is more efficient
sal_uInt8 * | pTargetUUID, |
const sal_uInt8 * | pNameSpaceUUID, |
const rtl_String * | pName ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
The version 3 UUID is meant for generating UUIDs from names that are drawn from, and unique within, some name space. Some examples of names (and, implicitly, name spaces) might be DNS names, URLs, ISO Object IDs (OIDs), reserved words in a programming language, or X.500 Distinguished Names (DNs); thus, the concept of name and name space should be broadly construed, and not limited to textual names.
The requirements for such UUIDs are as follows:
pTargetUUID | pointer to at least 16 bytes of memory. After the call it contains the newly generated uuid in network byte order. |
pNameSpaceUUID | The namespace uuid. Below are some predefined ones, but any arbitray uuid can be used as namespace. |
pName | the name |
sal_uInt8 * | pTargetUUID, |
const sal_uInt8 * | pPredecessorUUID, |
sal_Bool | bUseEthernetAddress ); |
virtual | abstract | const | volatile | template | static | inline | C-linkage |
NO | NO | NO | NO | NO | NO | NO | YES |
pTargetUUID | pointer to at least 16 bytes of memory. After the call it contains the newly generated uuid in network byte order. |
pPredecessorUUID | pointer to the previously generated uuid in network byte order. The generator reuses the 6-Byte random value and the two byte context value and ensures, that pTargetUUID is generated with a later timestamp. Set pPredecessorUUID to 0 if no predecessor is available. The caller is responsible for making the value persistent (if desired). |
bUseEthernetAddress | if |
Copyright 2002 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, CA 94303 USA.