23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
- (instancetype)initWithBytes: (const void *)bytes
objCType: (const char *)objCType
{
self = [super init];
@try {
_size = of_sizeof_type_encoding(objCType);
_objCType = objCType;
_bytes = OFAllocMemory(1, _size);
memcpy(_bytes, bytes, _size);
} @catch (id e) {
[self release];
@throw e;
|
|
|
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
- (instancetype)initWithBytes: (const void *)bytes
objCType: (const char *)objCType
{
self = [super init];
@try {
_size = OFSizeOfTypeEncoding(objCType);
_objCType = objCType;
_bytes = OFAllocMemory(1, _size);
memcpy(_bytes, bytes, _size);
} @catch (id e) {
[self release];
@throw e;
|