Added additional check to make sure that data is properly copied to array regardless fo computer/CPU platform (little-endian or big-endian). In case of big-endian platform intermediate array will be reversed prior to copying to destination array.
Added additional check to make sure that data is properly copied to array regardless fo computer/CPU platform (little-endian or big-endian). In case of big-endian platform intermediate array will be reversed prior to copying to destination array.

Wagnerp/sharpcompress,RainsSoft/sharpcompress,KOLANICH/sharpcompress,weltkante/sharpcompress,Gert-Jan/sharpcompress,adamhathcock/sharpcompress,ycaihua/sharpcompress,adamhathcock/sharpcompress,adamhathcock/sharpcompress