rte_hexdump.h(3)

πŸ“› NAME πŸ“›

rte_hexdump.h β€” that's the page, bestie. Section 3 of the Library Functions Manual, and literally the entire NAME section is just that header file. Short. Iconic. No notes. πŸ’…


🌸 SYNOPSIS 🌸

#include <stdio.h>

✨ Functions ✨

void rte_hexdump (FILE *f, const char *title, const void *buf, unsigned int len)
void rte_memdump (FILE *f, const char *title, const void *buf, unsigned int len)

Two functions. That's it. That's the whole menu and honestly they ate. πŸ¦‹


πŸ’œ DETAILED DESCRIPTION πŸ’œ

Okay so the vibe here is simple: this is a simple API to dump out memory in a special hex format. Like, when you're staring at a buffer going "what even is in there bestie 😭", this is the lil shortcut that shows you.

Definition in file rte_hexdump.h.


πŸŽ€ FUNCTION DOCUMENTATION πŸŽ€

🧚 void rte_hexdump (FILE * f, const char * title, const void * buf, unsigned int len)

Dump out memory in a special hex dump format. That's the whole job, and it does it flawlessly, no cap. ✨

Parameters

  • f β€” a pointer to a file for output. Like, wherever you want the dump to go, send it there. πŸ’Œ
  • title β€” if it's not NULL, this string gets printed as a header to the output. If it is NULL, no header, no drama, just bytes. πŸ™ˆ
  • buf β€” this is the buffer address to print out. The actual memory, the main character. πŸ‘‘
  • len β€” the number of bytes to dump out. Byte count. That's how much of buf you're seeing. πŸ“

🌈 void rte_memdump (FILE * f, const char * title, const void * buf, unsigned int len)

Dump out memory in a hex format with colons between bytes. Yeah. Colons. Little : separators between every byte, so cute, so readable. 🫢

Parameters

  • f β€” a pointer to a file for output. Point it somewhere and it writes there. πŸ’–
  • title β€” if not NULL, this string is printed as a header to the output. NULL means skip the header entirely. ⭐
  • buf β€” this is the buffer address to print out. Hand over the pointer, get the hex. πŸ”₯
  • len β€” the number of bytes to dump out. Pick your length, girl. πŸ¦‹

πŸ‘‘ AUTHOR πŸ‘‘

Generated automatically by Doxygen for DPDK from the source code. It literally wrote itself, which is the most main character energy of all. πŸ’€βœ¨


And that's the whole page, bestie! This was rte_hexdump.h(3) straight outta the DPDK docs, Version 25.11.3 β€” thanks for reading, mwah. πŸŽ€πŸ’–
πŸ“¦ where this page comes from