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