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

Better read/write/sizeOf interface #49

Open
rom1504 opened this issue Feb 19, 2016 · 2 comments
Open

Better read/write/sizeOf interface #49

rom1504 opened this issue Feb 19, 2016 · 2 comments

Comments

@rom1504
Copy link
Member

rom1504 commented Feb 19, 2016

https://github.com/Rantanen/node-dtls/blob/master/BufferBuilder.js is using a similar method than in protodef :

  • a packet spec with types
  • atomic reader writer by type

They are using a buffer reader and builder helpers which allow them to not care about offsets.

There might be interesting ideas in there we could use.

And it would be cool if protodef could be used in that kind of lib.

@rom1504
Copy link
Member Author

rom1504 commented Feb 19, 2016

https://github.com/Rantanen/node-dtls/blob/master/packets/PacketSpec.js

I think I'll try to get rid of offset, size and sizeOf throughout protodef (but keeping it sync ! No functionality change, just code improvement)

@rom1504
Copy link
Member Author

rom1504 commented Feb 19, 2016

Low priority, I don't want that kind of thing to slow down ProtoDef progress again.

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