Post

Replies

Boosts

Views

Activity

UnsafeMutablePointer direct exposure.
I am trying to use the swift type UnsafeMutablePointer directly in C++. According to the documentation mentioned, swift expose this type to C++. But I am not able to use it . void GetPointerFromSwift () { // Calls a swift function to get a pointer. swift::UnsafeMutablePointer<swit::Int> x = Interop::GetPointer () }
7
0
718
Sep ’24
Will a copy gets created when we pass user defined. swift struct instantiated in C++ to Swift Function?
When i instantiate a structure defined in swift in C++ and then i pass it to swift function as a IN param, it is passed as a constant value to the function. Here the same structure instance is passed or a copy is created?
Replies
1
Boosts
0
Views
530
Activity
Sep ’24
Passing Structure Initiated in Swift To C++ Function as In Param.
I have a use-case where I want to pass the user defined swift structure instantiated in swift and then pass it to a C++ Function as a Input Param. Is there a way to do that?
Replies
1
Boosts
0
Views
449
Activity
Sep ’24
UnsafeMutablePointer direct exposure.
I am trying to use the swift type UnsafeMutablePointer directly in C++. According to the documentation mentioned, swift expose this type to C++. But I am not able to use it . void GetPointerFromSwift () { // Calls a swift function to get a pointer. swift::UnsafeMutablePointer<swit::Int> x = Interop::GetPointer () }
Replies
7
Boosts
0
Views
718
Activity
Sep ’24