Closed kevbroch closed 4 years ago
True. This feature was requested but never been properly implemented. Do you plan using it?
Yes, that was my hope.
Hi @drom , I discovered WaveDrom by reading your interview with electronicdesign, that you posted recently on LinkedIn. I am part of a project that builds a document drafting framework (with focus on Technical Norms/Standards such as IETF, IEEE, ETSI etc.) and big-endianness is the dominant ordering in networking protocols. Often message descriptions as in the following picture are required:
Hence my interest in the bitfield library and especially on the big-endian feature. What would be your advice on how to progress best with this feature ?
It should be too hard. Let me try.
I ended up implementing 2 options instead of bigendian option in v1.3.1:
You can see how they work here: https://observablehq.com/@drom/bitfield-testbox
Hi @drom , Thanks a lot for this update ! The options {compact: true, vflip: true, hflip: true} provide the rendering that is most often used in our standards. Very impressive your tool. We will implement a prototype in our platform. I will keep you posted.
@smnice looking forward to seeing your prototype. Closing this ticket.
Looking at the code here: https://github.com/drom/bitfield/blob/master/lib/render.js#L209 I don't see how setting
--bigendian true
does anything