Skip to content
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

[6.0] Global.deserializeTo[] method #979

Open
wants to merge 47 commits into
base: v6.0.0
Choose a base branch
from
Open

[6.0] Global.deserializeTo[] method #979

wants to merge 47 commits into from

Conversation

kushti
Copy link
Member

@kushti kushti commented May 13, 2024

This PR is introducing new Global.deserializeRaw method which is allowing to deserialize a typed object from underlying bytes. It is compatible (has roundtrip with) Global.serialize from #989 .

example:

{
     val src = getVar[Coll[Short]](21).get
     val ba = serialize(src)
     val restored = deserializeTo[Coll[Short]](ba)
     src == restored
}

@kushti kushti changed the base branch from develop to v6.0.0 May 13, 2024 09:24
@kushti kushti changed the title [6.0] Global.deserialize method [6.0] Global.deserializeRaw method May 13, 2024
@kushti kushti modified the milestone: v6.0 May 13, 2024
@ergoplatform ergoplatform deleted a comment from kushti May 17, 2024
@kushti kushti changed the title [6.0] Global.deserializeRaw method [6.0] Global.deserializeTo[] method May 20, 2024
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.

2 participants