12? 16? 24? (was Re: How to fix "failed to provide new primary keys for..."?)
12? 16? 24? (was Re: How to fix "failed to provide new primary keys for..."?)
- Subject: 12? 16? 24? (was Re: How to fix "failed to provide new primary keys for..."?)
- From: PA <email@hidden>
- Date: Tue, 18 Jan 2005 15:53:02 +0100
On Jan 18, 2005, at 15:15, Clark, Igor wrote:
24-byte BINARY fields
I'm still wondering... why, oh why 24 bytes?
The latest, greatest EOTemporaryGlobalID.assignGloballyUniqueBytes [1]
describes it as:
< Sequence [2], ProcessID [2] , Time [4], IP Addr [4] >
Which looks more or less like a regular UUID [2]. Which is only 16
bytes.
To confuse matter even more, the good, old +
(void)assignGloballyUniqueBytes:(unsigned char *)buffer only use 12
bytes [3]:
< Sequence [2], ProcessID [2] , Time [4], IP Addr [4] >
What gives?
Cheers
--
PA
http://alt.textdrive.com/
P.S.
Where does the ProcessID comes from in Java?!?!?!?
[1]
http://developer.apple.com/documentation/WebObjects/Reference/API/com/
webobjects/eocontrol/
EOTemporaryGlobalID.html#assignGloballyUniqueBytes(byte[])
[2] http://java.sun.com/j2se/1.5.0/docs/api/java/util/UUID.html
[3]
http://developer.apple.com/documentation/LegacyTechnologies/WebObjects/
WebObjects_4.5/System/Library/Frameworks/EOControl.framework/
ObjC_classic/Classes/EOTemporaryGlobalID.html
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden