alibaba / alibaba/fastFFI

C language encapsulation

Open
#41 5 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Java
Stars
127
Forks
14
PR merge metrics
No merged PRs in 30d

Description

Hello, may I ask if this library supports encapsulating the C language? For example, how can the following code be packaged using fastffi?
```C
// func.h
extern "C" {
extern int func(int **matrix, int n);
};

// func.cpp
int func (int ** matrix, int n) {
// do xxx
return sum;
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Review fastFFI's current support and documentation for C/C++ interoperability, using the func.h and func.cpp example as the starting point. Determine whether this pointer-based example is supported and identify the project entry points or tests that would need to define the expected behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, cpp
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.