lhp,
@lhp@mastodon.social avatar

This weird fileformat I am parsing right now has packets of 64 bit length. Some are headers, some clock "heartbeats", some "hits". For whatever reason, the magic of header packets is in the least significant bytes while the magic of all other packets is in the most significant bytes. Who comes up with something like that?

Either way, parsing is super neat because #zig lets me just read the entire file as u64's which I can then cast onto packed structs.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • zig
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines