From discord, AssemblyScript channel
guest271314 Let's say you have a
TypedArray
such asvar u = Uint8Array.of(49, 48, 48, 48)
and you know those values in hexidecimal will produce an integerparseInt(new TextDecoder().decode(u), 16) // 4096
. How can that4096
be derived without converting to a string, usingDataView
or other methods to get the integer?
PhoenixIllusion case insensitive ascii-to-hex could be brute forced via:
function hexFromArray(a) {