ProtoDef-io / ProtoDef-io/node-protodef

Better read/write/sizeOf interface

Open
#49 2 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.