26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
#define bytesSize 16
@implementation OFUUID
+ (instancetype)UUID
{
return [[[self alloc] init] autorelease];
}
- (instancetype)init
{
uint64_t r;
self = [super init];
|
>
>
>
>
>
>
>
>
>
>
|
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
#define bytesSize 16
@implementation OFUUID
+ (instancetype)UUID
{
return [[[self alloc] init] autorelease];
}
+ (instancetype)UUIDWithUUIDBytes: (const unsigned char [16])bytes
{
return [[[self alloc] initWithUUIDBytes: bytes] autorelease];
}
+ (instancetype)UUIDWithUUIDString: (OFString *)string
{
return [[[self alloc] initWithUUIDString: string] autorelease];
}
- (instancetype)init
{
uint64_t r;
self = [super init];
|