uint64_unpack(3)

πŸ“¦
version 0.34 Β· 2 versions
  • 0.34 Β· alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.30 Β· fedora 43, fedora 44, ubuntu jammy
, in alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– uint64_unpack(3) πŸ’–

okay bestie, so this page lives in the Library Functions Manual and it's all about one lil' function called uint64_unpack. sit with me, it's gonna be quick and cute πŸŽ€


✨ NAME ✨

uint64_unpack β€” read an unsigned little-endian 64-bit integer 🧚


✨ SYNTAX ✨

first, the vibe setup β€” you gotta pull in the header:

#include <libowfat/uint64.h>

then you declare your variable, like so:

uint64 u;

and here's the function itself, exactly as it is, no notes:

void uint64_unpack(const char s[4],uint64 *u);

✨ DESCRIPTION ✨

so uint64 is a 64-bit unsigned integer type. big girl numbers only, no negativity allowed πŸ’…

and uint64_unpack? she portably reads a uint64 β€” as it would be stored on a little-endian architecture β€” from s, and writes it into u in the native byte order. so like, it takes the little-endian representation and hands you back the version your own machine actually speaks. translation service but make it bytes πŸ¦‹


✨ SEE ALSO ✨


okay that's the whole page, you ate it 🫢 this was uint64_unpack(3) from the Library Functions Manual β€” go forth and unpack responsibly, mwah πŸ’–βœ¨πŸŽ€