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

provide easy serialization / deserialization #12

Open
timotheecour opened this issue Apr 2, 2018 · 0 comments
Open

provide easy serialization / deserialization #12

timotheecour opened this issue Apr 2, 2018 · 0 comments

Comments

@timotheecour
Copy link

timotheecour commented Apr 2, 2018

same as done here: https://github.com/oswjk/protobuf-nim/blob/master/README.md

let message = newTest1()
# ...
let data = serialize(message)
let message2 = newTest1(data)
assert message2 == message

This could be in addition to the existing stream based API:

var stream = newStringStream()
stream.write message
stream.setPosition(0)
var message2 = stream.readExampleMessage()
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

No branches or pull requests

1 participant