uint64_unpack_big(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_big πŸ’–

okay so bestie, welcome to the Library Functions Manual, section 3, where we read big numbers off the wire and make them make sense. this page is literally about uint64_unpack_big and it's shorter than your attention span, so let's GO 🫢


✨ NAME ✨

uint64_unpack_big β€” read an unsigned big-endian 64-bit integer πŸ’…


🌸 SYNTAX 🌸

like, here's the whole vibe, copy it exactly bestie:

#include <libowfat/uint64.h>

uint64 u;

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

πŸ¦‹ DESCRIPTION πŸ¦‹

so uint64 is a 64-bit unsigned integer type. that's it, that's the girl. a whole 64 bits of unsigned integer energy πŸ‘‘

and uint64_unpack_big? she portably reads a uint64 as stored on a big-endian architecture β€” i.e. in network byte order β€” from s, and writes it into u in the native byte order. no cap. it just does the byte-order translation for you so you don't have to think about it, which is honestly so iconic of her ✨

lowkey the entire point: s comes in big-endian, u comes out native. that's the glow-up. πŸ’«

πŸŽ€ SEE ALSO πŸŽ€


and that's the whole page bestie, we ate and left no crumbs πŸ“ this was uint64_unpack_big(3) from the Library Functions Manual β€” go read the SEE ALSOs, mwah πŸ’–πŸŒˆβ­