uro / teltonika-fm-parser

Teltonika fm xxxx protocol encoder and decoder
The Unlicense
68 stars 45 forks source link

[IoValue] Handle `signed/unsigned long long` (8 Bytes) #17

Closed elementaire closed 1 year ago

elementaire commented 1 year ago
Q A
Branch? master
Bug fix? no
New feature? yes
Deprecations? no
Issues -
License Public Domain

This PR allows to decode unsigned long long (8 Bytes) like the ICCID1 parameter.

I have not any example of signed long long yet.

elementaire commented 1 year ago

I understand why it was not done before when i tried to update UnitTest.

PHP does not handle large int, because PHP_INT_MAX is 7fffffffffffffff (64 bits) not ffffffffffffffff. It will not work in 32 bits system either.