ObjFW
Loading...
Searching...
No Matches
OFInvocation.h
1/*
2 * Copyright (c) 2008-2024 Jonathan Schleifer <js@nil.im>
3 *
4 * All rights reserved.
5 *
6 * This file is part of ObjFW. It may be distributed under the terms of the
7 * Q Public License 1.0, which can be found in the file LICENSE.QPL included in
8 * the packaging of this file.
9 *
10 * Alternatively, it may be distributed under the terms of the GNU General
11 * Public License, either version 2 or 3, which can be found in the file
12 * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this
13 * file.
14 */
15
16#import "OFObject.h"
17
18OF_ASSUME_NONNULL_BEGIN
19
21@class OFMutableArray OF_GENERIC(ObjectType);
22@class OFMutableData;
23
29OF_SUBCLASSING_RESTRICTED
31{
32 OFMethodSignature *_methodSignature;
33 OFMutableArray OF_GENERIC(OFMutableData *) *_arguments;
34 OFMutableData *_returnValue;
35}
36
40@property (readonly, nonatomic) OFMethodSignature *methodSignature;
41
48+ (instancetype)invocationWithMethodSignature: (OFMethodSignature *)signature;
49
57- (instancetype)initWithMethodSignature: (OFMethodSignature *)signature;
58
65- (void)setArgument: (const void *)buffer atIndex: (size_t)index;
66
73- (void)getArgument: (void *)buffer atIndex: (size_t)index;
74
80- (void)setReturnValue: (const void *)buffer;
81
87- (void)getReturnValue: (void *)buffer;
88@end
89
90OF_ASSUME_NONNULL_END
A class for storing and accessing invocations, and invoking them.
Definition OFInvocation.h:31
A class for parsing type encodings and accessing them.
Definition OFMethodSignature.h:29
An abstract class for storing, adding and removing objects in an array.
Definition OFMutableArray.h:44
A class for storing and manipulating arbitrary data in an array.
Definition OFMutableData.h:26
The root class for all other classes inside ObjFW.
Definition OFObject.h:688