public byte [ ] readByteArray ( final int items , final JBBPByteOrder byteOrder ) throws IOException { final byte [ ] result = _readArray ( items , null ) ; if ( byteOrder == JBBPByteOrder . LITTLE_ENDIAN ) { JBBPUtils . reverseArray ( result ) ; } return result ; }
Read number of bytes for the stream . Invert their order if byte order is LITTLE_ENDIAN