ProtoDef-io / ProtoDef-io/node-protodef
Better read/write/sizeOf interface
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 35
- Forks
- 25
- Avg merge
- 4d 3m
- Merged PRs (30d)
- 2
Description
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.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading BufferBuilder.js in the linked node-dtls repository and compare its packet specs, typed atomic readers and writers, and offset-free buffer helpers with the current protodef interface. Determine which ideas could support reading, writing, and sizeOf while preserving the goal of using protodef in similar libraries. Done means an agreed interface and corresponding implementation scope; no tests or target files are named in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- networking
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100