Love the library. Thanks for writing and sharing it.
Question:
My application works with Uint8Arrays where each element is a number from 0x00 to 0xFF. Occasionally I need to convert these to BigInts to do some calculation and then back again. If I'm not mistaken, the toArray and fromArray methods would only work if my array elements were each 4 bits wide - ie max value 'F'. I can write a utility / wrapper to get around this but I wanted to check first that I didn't misunderstand those methods.
Love the library. Thanks for writing and sharing it.
Question: My application works with Uint8Arrays where each element is a number from 0x00 to 0xFF. Occasionally I need to convert these to BigInts to do some calculation and then back again. If I'm not mistaken, the
toArray
andfromArray
methods would only work if my array elements were each 4 bits wide - ie max value 'F'. I can write a utility / wrapper to get around this but I wanted to check first that I didn't misunderstand those methods.