I'm trying to do this swprintf(hexResult, L"%I64X", result);
from javascript, is this possible? Such that CityHash64('C:\\Program Files (x86)\\Mozilla Firefox')
is encoded as E7CF176E110C211B
.
Thanks
JavaScript numbers have a toString
method which takes a radix. Using toString(16)
will get you the number in hex. Is this what you're looking for?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.