ProtoDef-io / ProtoDef-io/node-protodef

little endian bitfield

Open
#95 1 comment 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

our current implementation of bitfield is big endian

some protocols such as diablo2 are fully little endian, even their bitfields

2 ways to do that :

  1. implement it ourselves
  2. use https://github.com/inolen/bit-buffer

I'm not too confident on being able to do 1 easily.

Might try to do 2

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 locating the current bitfield implementation and its tests, then review the little-endian behavior required by protocols such as Diablo 2. Compare the needed behavior with the linked bit-buffer option before choosing an approach. Done means little-endian bitfields are supported without breaking existing big-endian behavior, with coverage for both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
networking
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.