public static String toHex(short value) {StringBuilder sb = new StringBuilder(4);writeHex(sb, value & 0xFFFF, 4, "");return sb.toString();}
public static string ToHex(byte value){return ToHex((long)value, 2);}