From 093fe2a556d242cf930e79348dcece3ec8c78e6f Mon Sep 17 00:00:00 2001 From: Yuval Kashtan Date: Fri, 18 Jul 2014 15:45:16 +0300 Subject: Add support for java.nio.Buffer including test-suite test case and documentation --- Doc/Manual/Java.html | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Doc/Manual/Java.html') diff --git a/Doc/Manual/Java.html b/Doc/Manual/Java.html index fb8e5d694..5e87e835e 100644 --- a/Doc/Manual/Java.html +++ b/Doc/Manual/Java.html @@ -5490,6 +5490,15 @@ These are listed below: Use for mapping NULL terminated arrays of C strings to Java String arrays + +unsigned char * +NIOBUFFER +various.i +input
output +java.nio.Buffer +Use for mapping directly allocated buffers to c/c++. useful with directors and long lived memory objects + +

25.9.6 Java typemap attributes

-- cgit v1.2.1 From f541e604e8722550826d6dcac2d97adf49309061 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Tue, 18 Nov 2014 12:44:37 +1300 Subject: Consistently put whitespace outside of ... and not inside --- Doc/Manual/Java.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Doc/Manual/Java.html') diff --git a/Doc/Manual/Java.html b/Doc/Manual/Java.html index 5e87e835e..3a4f7ee5d 100644 --- a/Doc/Manual/Java.html +++ b/Doc/Manual/Java.html @@ -358,7 +358,7 @@ more aggressive from gcc-4.0 onwards and will result in code that fails with str

The name of the shared library output file is important. If the name of your SWIG module is "example", the name of the corresponding shared library file should be "libexample.so" (or equivalent depending on your machine, see Dynamic linking problems for more information). -The name of the module is specified using the %module directive or -module command line option.

+The name of the module is specified using the %module directive or -module command line option.

25.2.5 Using your module

@@ -2441,7 +2441,7 @@ It also contains all the methods in the C++ class it is proxying plus getters an member variables. These functions call the native methods in the intermediary JNI class. The advantage of having this extra layer is the type safety that the proxy class functions offer. It adds static type checking which leads to fewer surprises at runtime. -For example, you can see that if you attempt to use the spam() +For example, you can see that if you attempt to use the spam() function it will only compile when the parameters passed are an int and a Foo. From a user's point of view, it makes the class work as if it were a Java class:

@@ -4173,8 +4173,8 @@ void *malloc(size_t nbytes);

If no declaration name is given to %exception, it is applied to all wrapper functions. -The $action is a SWIG special variable and is replaced by the C/C++ function call being wrapped. -The return $null; handles all native method return types, namely those that have a void return and those that do not. +The $action is a SWIG special variable and is replaced by the C/C++ function call being wrapped. +The return $null; handles all native method return types, namely those that have a void return and those that do not. This is useful for typemaps that will be used in native method returning all return types. See the section on Java special variables for further explanation. @@ -5579,7 +5579,7 @@ This special variable is usually used for making calls to a function in the inte

-$null
+$null
Used in input typemaps to return early from JNI functions that have either void or a non-void return type. Example:

-- cgit v1.2.1