symengine / SymEngine.jl

Julia wrappers of SymEngine
MIT License
192 stars 43 forks source link

Fixed serialization issue #256

Closed PerformanceCoder closed 2 years ago

PerformanceCoder commented 2 years ago

Fixes #255

I'm not sure, but it seems that the issue was with string conversion. Serialized data is not NUL-terminated and serialize function was writing data using strings. unsafe_string with specified length wrote all the data correctly but read(io, String) in deserialization function had problems with parsing this strings.

Current implementation manipulates data with Int8 arrays and works without problems.

isuruf commented 2 years ago

Thanks