summaryrefslogtreecommitdiffstats
path: root/doc/manual/example4/function.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'doc/manual/example4/function.cfg')
-rw-r--r--doc/manual/example4/function.cfg12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/manual/example4/function.cfg b/doc/manual/example4/function.cfg
new file mode 100644
index 0000000..feee635
--- /dev/null
+++ b/doc/manual/example4/function.cfg
@@ -0,0 +1,12 @@
+Package testfunction
+Style AllStatic
+JavaClass TestFunction
+JavaOutputDir gensrc/java
+NativeOutputDir gensrc/native
+
+# The length of the returned ByteBuffer from custom_allocate is
+# specified as the argument
+ReturnValueCapacity custom_allocate {0}
+
+# custom_free will only ever receive a direct Buffer
+NioDirectOnly custom_free