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:
William S Fulton 2005-09-29 20:16:28 +00:00
commit 5db7f9f04d

View file

@ -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>