|  Per Bothner | 40c23042f4 | ByteBuffer.java (shiftDown): New helper method. * java/nio/ByteBuffer.java (shiftDown):  New helper method.
	* java/nio/natDirectByteBufferImpl.cc (shiftDown):  New implementation.
	* java/nio/ByteBufferImpl.java (compact):  Use new shiftDown method.
	* sava/nio/ByteBufferHelper.java:  Remove redundant 'final' specifiers.
	Pass ByteOrder parameter to most methods, since the underlying
	ByteBuffer's order isn't always what we should use.
	* java/nio/ByteBufferImpl.java:  Pass byte-order various places.
	* java/nio/DirectByteBufferImpl.java:  Likewise.
	Use ByteBufferHelper methods.
	* java/nio/MappedByteBufferImpl.java:  Likewise.
	(compact):  Use shiftDown.
	* java/nio/CharViewBufferImpl.java (<init>):  Pass byte-order.
	(get, put):  Use ByteBufferHelper.
	(compact):  Use new shiftDown method.
	(duplicate(boolean)):  New helper method.
	(duplicate, asReadOnlyBuffer):  Use it.
	(order):  Return endian field.
	* java/nio/DoubleViewBufferImpl.java:  Likewise.
	* java/nio/FloatViewBufferImpl.java:  Likewise.
	* java/nio/IntViewBufferImpl.java:  Likewise.
	* java/nio/LongViewBufferImpl.java:  Likewise.
	* java/nio/ShortViewBufferImpl.java:  Likewise.
	* java/nio/CharViewBufferImpl.java (subsequence):  Redundant test.
	* java/nio/DirectByteBufferImpl.java (shiftDown):  New native method.
	(compact):  Re-implement using shiftDown.
From-SVN: r77501 | 2004-02-08 13:02:53 -08:00 | 
				
					
						|  Michael Koch | a08a2b7514 | ByteBufferHelper.java: Rewrote all methods by suggestions from Eric Blake. 2003-10-02  Michael Koch  <konqueror@gmx.de>
	* java/nio/ByteBufferHelper.java:
	Rewrote all methods by suggestions from Eric Blake.
From-SVN: r72030 | 2003-10-02 15:02:32 +00:00 | 
				
					
						|  Michael Koch | 853ca657f0 | ByteBufferHelper.java: Totally reworked with help from Eric Blake. 2003-09-26  Michael Koch  <konqueror@gmx.de>
	* java/nio/ByteBufferHelper.java:
	Totally reworked with help from Eric Blake.
From-SVN: r71823 | 2003-09-26 16:22:09 +00:00 | 
				
					
						|  Michael Koch | 5e2ba18bc1 | ByteBufferHelper.java: New file. 2003-09-25  Michael Koch  <konqueror@gmx.de>
	* java/nio/ByteBufferHelper.java:
	New file.
	* java/nio/ByteBufferImpl.java,
	java/nio/DirectByteBufferImpl.java,
	java/nio/MappedByteBufferImpl.java
	(getType,putType): Use new helper class ByteBufferHelper.
	* Makefile.am (ordinary_java_source_files):
	Added java/nio/ByteBufferHelper.java.
	* Makefile.in: Regenerated.
From-SVN: r71757 | 2003-09-25 06:43:52 +00:00 |