public static String toHex(int value) {StringBuilder sb = new StringBuilder(8);writeHex(sb, value & 0xFFFFFFFFL, 8, "");return sb.toString();}

public static string ToHex(byte value){return ToHex((long)value, 2);}
