package de.lazyzero.kkMulticopterFlashTool.utils.EEprom;

import java.nio.ByteBuffer;
import java.nio.ByteOrder;

public class EndianConverter {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		byte[] b = {(byte) 0x84, (byte)0x03, 0x00, 0x00};
		ByteBuffer bb = ByteBuffer.wrap(b);
		bb = bb.order(ByteOrder.LITTLE_ENDIAN);
		System.out.println(bb.getInt());
				
//		short s = Short.reverseBytes(dis.readShort());
//		int i = Integer.reverseBytes(dis.readInt());
//		long l = Long.reverseBytes(dis.readLong());
//		float f = Float.intBitsToFloat(Integer.reverseBytes(dis.read Int());
//		double d = Double.longBitsToDouble(Long.reverseBytes(dis.read Long());
	}

}
