📄 playertcp_java.i
字号:
%module playertcp_java%include "typemaps.i"%include "arrays_java.i"// Tell SWIG that an int* function argument should be treated as an array// of ints%apply int[ANY] {int*};// Should not need these typemaps, but the ones generated by SWIG does not// work%typemap(in) int* { $1 = (int*)(jenv->GetIntArrayElements($input, 0));}%typemap(freearg) int* { jenv->ReleaseIntArrayElements($input, (jint*)$1, 0);}%typemap(argout) int* {}// The stuff between the braces gets copied verbatim into the output%{#include <libplayertcp/playertcp.h>#include <libplayerxdr/functiontable.h>%}%include <libplayertcp/playertcp.h>%include <libplayerxdr/functiontable.h>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -