use objc2::__framework_prelude::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct NSMethodSignature;
unsafe impl ClassType for NSMethodSignature {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
unsafe impl NSObjectProtocol for NSMethodSignature {}
extern_methods!(
unsafe impl NSMethodSignature {
#[method_id(@__retain_semantics Other signatureWithObjCTypes:)]
pub unsafe fn signatureWithObjCTypes(
types: NonNull<c_char>,
) -> Option<Retained<NSMethodSignature>>;
#[method(numberOfArguments)]
pub unsafe fn numberOfArguments(&self) -> NSUInteger;
#[method(getArgumentTypeAtIndex:)]
pub unsafe fn getArgumentTypeAtIndex(&self, idx: NSUInteger) -> NonNull<c_char>;
#[method(frameLength)]
pub unsafe fn frameLength(&self) -> NSUInteger;
#[method(isOneway)]
pub unsafe fn isOneway(&self) -> bool;
#[method(methodReturnType)]
pub unsafe fn methodReturnType(&self) -> NonNull<c_char>;
#[method(methodReturnLength)]
pub unsafe fn methodReturnLength(&self) -> NSUInteger;
}
);
extern_methods!(
unsafe impl NSMethodSignature {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);