News for hackers. Stuff that matters.
Re:How to save multiple numbers into one byte by deathanatos on Friday December 02, 2016 @08:28PM (#13093694)
The struct library is great for decoding binary file formats, but it has no facilities for sub-byte packing such as what the article talks about. But if you have a structure composed of little or big-ending encoded 8-/16-/32-/64-bit signed/unsigned integers in a file (quite common) … struct is amazing.

There are no comments on this comment yet.