default array wrapping clarification
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@7554 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
3575cd6e06
commit
5db7f9f04d
1 changed files with 2 additions and 1 deletions
|
|
@ -1362,7 +1362,8 @@ For array assignment (setters not getters), SWIG copies the entire contents of t
|
|||
to by <tt>b.x</tt>. In this example, 16 integers would be copied. Like C, SWIG makes
|
||||
no assumptions about bounds checking---if you pass a bad pointer, you may get a segmentation
|
||||
fault or access violation.
|
||||
Array access can be changed from this default to use Java arrays and this is covered later.
|
||||
The default wrapping makes it hard to set or get just one element of the array and so array access from Java is somewhat limited.
|
||||
This can be changed easily though by using the approach outlined later in the <a href="#c_arrays">Wrapping C arrays with Java arrays</a> section.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue