Patch: java.nio.DirectBufferImpl.shiftDown()

Michael Koch konqueror@gmx.de
Wed Apr 21 12:16:00 GMT 2004


Hi list,


On request of some people using java.nio with JNI I made 
java.nio.DirectBufferImpl.shiftDown() static and removed an unecessary 
usage of array_offset which is always 0 for direct buffers and is 
intended only for buffers with backend arrays.

Per: whats your opinion about this ?
Okay to commit to trunk ?


Michael


2004-04-21  Michael Koch  <konqueror@gmx.de>

	* java/nio/DirectByteBufferImpl.java
	(shiftDown): Made static, give address as argument.
	* java/nio/natDirectByteBufferImpl.cc
	(shiftDown): Changed method signature. Removed usage of array_offset.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: nio.diff
Type: text/x-diff
Size: 1710 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040421/ea2bf8bf/attachment.bin>


More information about the Java-patches mailing list