Open timotheecour opened 6 years ago
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()
same as done here: https://github.com/oswjk/protobuf-nim/blob/master/README.md
This could be in addition to the existing stream based API: