#Decimalise an ASCII-encoded String

10 messages · Page 1 of 1 (latest)

junior crater
candid gulch
#

But, no, I don't need the middle step if there is a faster way to do it without

#

Was mainly just trying to make it as fast as possible

#

I know I can just do:
int64(binary.BigEndian.Uint64([]byte("Zenyaria")))
However, I was wondering if there is a way to directly convert
ASCII -> int64, or is the fastest way something I have to just code myself?

past smelt
#

what int64 value would the string "Was mainly just trying to make it as fast as possible" encode to?

candid gulch
#

14787458251696097395283569644247065427524068782975909149501617218683702702543803070335732415007071488185369809976798984108403813 would be the intended output, but yeah, I get your point. Probably better to handle everything in binary regardless (?)

past smelt
#

I don't understand what the goal is here, it seems you've understood "ascii -> int64" is not well defined, but I don't see the overall point of this

candid gulch
#

just a dumb idea for a form of user id that I didn't think about at all- storing a name inside the epoche of the date of a created user