franslundberg/binson-java

Possible bug: "Gris"

franslundberg opened this issue · 1 comments

Seems like a badly formatted binary binson string:

String gris = "401405636861696e40140263684219e600792f20f6ce0b1a6714526484b4ea600d29bd25fc83b72945660cb37617300e3fd32e7523ee8000ba4007a1fd134fed69ee653f168f5bc5f39a88f7ca19cc51014014016118010f1402667218209d1e40e2f2d456f9ab21a7c84a231bc94f8790a322520f1a6061e6cc0aa9f7c91401704218210a357239b70ed94c611c4fafef19299d01c18cdabae1e24dbbdd56d6aef60c765d1802141514026c754314027463180c500110cc7c0170f37c0100001402746e140a44656d6f436c69656e741402746f18205529ce8ccf68c0b8ac19d437ab0f5b32723782608e93c6264f184ba152c2357b4143411404686f7374401403646f63421402656e14004314046e616d65421402656e140348656a4314037075621820357239b70ed94c611c4fafef19299d01c18cdabae1e24dbbdd56d6aef60c765d41140a6b6579486f6c6465727342401403646f63421402656e14004314046e616d65421402656e14044861776b43140370756218209d1e40e2f2d456f9ab21a7c84a231bc94f8790a322520f1a6061e6cc0aa9f7c941401403646f63421402656e14004314046e616d65421402656e140a44656d6f436c69656e7443140370756218205529ce8ccf68c0b8ac19d437ab0f5b32723782608e93c6264f184ba152c2357b41431404756e6974401403646f63421402656e14275065726d697373696f6e20746f206c6f636b20616e6420756e6c6f636b20746865206c6f636b2e43140668704e616d6514026c7514056c6576656c100214046e616d65421402656e140b6c6f636b2f756e6c6f636b43140170421802141514026c7543140474797065140268704141";

Is the sequence 4219e600 ok? bytesLen e600?

Not a bug. Sequence is OK. Note, signed two's complement 8-bit int is used. Its range is -128..127, so two bytes are needed to encode 0xe6.