[web-bluetooth] Convert unsigned long to string

23 views
Skip to first unread message

Giovanni Ortuño

unread,
May 27, 2015, 6:51:47 PM5/27/15
to blink-dev, jyas...@chromium.org, Vincent Scheib (via Google Docs)
Hello blink-dev,

I'm trying to implement a function that takes an 'unsigned long' and returns a string with the hex representation of the unsigned long appended to it:


I thought about using strigstreamer and std::hex but I haven't seen std::hex being used in Blink. Also since this function gets it's input directly from the user I figured I should ask in case there are any security issues I should be aware of.

Thanks

Gio

Vincent Scheib

unread,
May 27, 2015, 7:00:41 PM5/27/15
to Giovanni Ortuño, blink-dev, jyas...@chromium.org
HexNumber.h looks promising. 

Giovanni Ortuño

unread,
May 27, 2015, 7:03:09 PM5/27/15
to Vincent Scheib, blink-dev, jyas...@chromium.org
Thanks!
Reply all
Reply to author
Forward
0 new messages