Skip to content

Fixed serialization issue #256

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 16, 2022

Conversation

PerformanceCoder
Copy link
Contributor

@PerformanceCoder PerformanceCoder commented Jun 16, 2022

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
Copy link
Member

isuruf commented Jun 16, 2022

Thanks

@isuruf isuruf merged commit 1bce8dd into symengine:master Jun 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Serialization don't work with complex data types containing SymEngine expressions
2 participants