Resources | developer.brewmp.com Resources | developer.brewmp.com

Developer

resources

IDL long long in JSON

int64 and uint64 cannot be represented accurately in a ECMAScript number when more than the bottom 53 bits are in use. Therefore, it is passed as an object containing the number and a remainder. The remainder is the difference between the value held by the number and the actual value. For example:

const long long ABC = 1;
    

is mapped as:

{"ABC": {"n": 1, "r": 0}}