javascript shifting >32-bit to get 64-bit Int

314 Views Asked by At

I am using an API which responseType is ArrayBuffer. so for reading data from is i am using DataView. which allows me to read 32-bit Int max and in float its 64-bit for which i can get max of 53-bit int.

have some int values of 6-byte. so for reading or writing > 32-bit Int i needed bit shifting of >=32-bit. but the following link says JavaScript shift operation works for <32-bit. here is the link developer.mozilla

how can I read a 6-byte or 8-byte int from DataView in JavaScript via shifting or any means?

0

There are 0 best solutions below