Closed boyuan-chen closed 4 years ago
@cby3149 Thank you for reporting this bug.
It has been fixed and an updated version of this library has been published.
You could use the IntegerEncoder like the following:
...
const plainText = Morfix.PlainText()
encoder.encodeInt32({value: 6, destination: plainText})
const decoded = encoder.decodeInt32({ plainText })
// decoded = 6
Here is my code:
The error message is
Not quite sure how to encode an integer. I didn't find any instructions to encode and decode integer, so I followed the API doc and gave it 1 argument.