|
|
@ -118,8 +118,7 @@ public class SelectorKernel extends AbstractKernel |
|
|
|
if( !reliable ) |
|
|
|
if( !reliable ) |
|
|
|
throw new UnsupportedOperationException( "Unreliable send not supported by this kernel." ); |
|
|
|
throw new UnsupportedOperationException( "Unreliable send not supported by this kernel." ); |
|
|
|
|
|
|
|
|
|
|
|
if( copy ) |
|
|
|
if( copy ) { |
|
|
|
{ |
|
|
|
|
|
|
|
// Copy the data just once
|
|
|
|
// Copy the data just once
|
|
|
|
byte[] temp = new byte[data.remaining()]; |
|
|
|
byte[] temp = new byte[data.remaining()]; |
|
|
|
System.arraycopy(data.array(), data.position(), temp, 0, data.remaining()); |
|
|
|
System.arraycopy(data.array(), data.position(), temp, 0, data.remaining()); |
|
|
|