DTDTSBUFFERTOATTRIBUTELIST(3)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

πŸ’… DtDtsBufferToAttributeList(3) πŸ’…

okay so bestie, welcome to the library call page for DtDtsBufferToAttributeList β€” it’s giving β€œI type your byte stream and hand you back attributes” energy, no cap. ✨

🌸 NAME 🌸

DtDtsBufferToAttributeList β€” get a list of data attributes for a byte stream, periodt. πŸ’–

✨ SYNOPSIS ✨

#include &<Dt/Dts.h>
DtDtsAttribute **DtDtsBufferToAttributeList(
const void *buffer,
const int size,
const char *opt_name);

πŸ¦‹ DESCRIPTION πŸ¦‹

The DtDtsBufferToAttributeList function returns a list of data attributes for a given byte stream. Literally that’s the whole vibe. 🫢

  • buffer β€” this is your pointer to the buffer of the data to be typed. the data to be typed, yep.
  • size β€” the size of the buffer, in bytes. πŸ“
  • opt_name β€” this one can specify a name to be associated with the buffer. If opt_name is not NULL, it is used as a pseudo file name in typing; otherwise, certain attributes may be returned as NULL because the filename components could not be determined. iykyk πŸŽ€

πŸ”₯ RETURN VALUE πŸ”₯

Upon successful completion, the DtDtsBufferToAttributeList function returns a NULL-terminated array of pointers of *DtDtsAttribute. If no value could be determined, it returns NULL. iconic behavior, honestly 🌈

🫢 APPLICATION USAGE 🫢

The application should use the DtDtsFreeAttributeList(3) function to release the memory for the returned value. clean up after yourself, bestie 🧚

The DtDtsBufferToAttributeList function assumes that the buffer is readable and writable by the user, group and other file classes and selects a type accordingly. An application requiring a type based on read-only permissions should use DtDtsDataToDataType. πŸ‘‘

πŸ’œ SEE ALSO πŸ’œ


πŸŽ€ that’s the whole library call page, bestie. The footer is literally DtDtsBuffer...tributeList(library call) β€” no extra source/version/date line is shown here, so that’s the sign-off vibe. πŸ’–

πŸ“¦ where this page comes from