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

public static string ToHex(short value){return ToHex((long)value, 4);}
