public void writeBytes ( final byte [ ] array , final int length , final JBBPByteOrder byteOrder ) throws IOException { if ( byteOrder == JBBPByteOrder . LITTLE_ENDIAN ) { int i = length < 0 ? array . length - 1 : length - 1 ; while ( i >= 0 ) { this . write ( array [ i -- ] ) ; } } else { this . write ( array , 0 , length < 0 ? array . length : length ) ; } }
Write number of items from byte array into stream