Here you can find the source of getUIntByByte(byte data)
Parameter | Description |
---|---|
data | a parameter |
public static int getUIntByByte(byte data)
//package com.java2s; public class Main { /**//w w w.j a v a2s .c o m * new byte[] { 8, 4, 2, 1 } => 00000001 00000010 00000100 00001000 * * @param data * @return */ public static int getUIntByByte(byte data) { return data & 0xFF; } }