20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#include <string.h>
#import "OFInvocation.h"
#import "OFArray.h"
#import "OFData.h"
#import "OFMethodSignature.h"
#ifdef OF_INVOCATION_CAN_INVOKE
extern void of_invocation_invoke(OFInvocation *);
#endif
@implementation OFInvocation
@synthesize methodSignature = _methodSignature;
+ (instancetype)invocationWithMethodSignature: (OFMethodSignature *)signature
{
return [[[self alloc] initWithMethodSignature: signature] autorelease];
}
|
<
<
<
<
|
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#include <string.h>
#import "OFInvocation.h"
#import "OFArray.h"
#import "OFData.h"
#import "OFMethodSignature.h"
@implementation OFInvocation
@synthesize methodSignature = _methodSignature;
+ (instancetype)invocationWithMethodSignature: (OFMethodSignature *)signature
{
return [[[self alloc] initWithMethodSignature: signature] autorelease];
}
|
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
|
memcpy(_returnValue.mutableItems, buffer, _returnValue.itemSize);
}
- (void)getReturnValue: (void *)buffer
{
memcpy(buffer, _returnValue.items, _returnValue.itemSize);
}
#ifdef OF_INVOCATION_CAN_INVOKE
- (void)invoke
{
of_invocation_invoke(self);
}
#endif
@end
|
<
<
<
<
<
<
<
|
107
108
109
110
111
112
113
114
|
memcpy(_returnValue.mutableItems, buffer, _returnValue.itemSize);
}
- (void)getReturnValue: (void *)buffer
{
memcpy(buffer, _returnValue.items, _returnValue.itemSize);
}
@end
|