MSR_ADDBLOCKETTE(3)
β¨ MSR_ADDBLOCKETTE β¨
okay bestie, welcome to msr_addblockette(3) β it's a library function from the Library Functions Manual and it's literally about hooking a blockette onto the blockette chain of an MSRecord structure π
π NAME π
msr_addblockette β bestie, it adds a blockette to the blockette chain of an MSRecord structure. that's it. that's the whole job. iconic behavior honestly.
πΈ SYNOPSIS πΈ
#include <libmseed.h>
BlktLink *msr_addblockette ( MSRecord *msr, char *blktdata,
int length, int blkttype, int chainpos );
π¦ DESCRIPTION π¦
so msr_addblockette adds a blockette to a blockette chain of an MSRecord structure. slay.
the chainpos value controls which end of the chain the blockette gets added to:
- if
chainposis0β the blockette goes to the end of the chain (last blockette) π - other wise β it goes to the beginning of the chain (first blockette) π
a blockette chain is composed of linked BlktLink structures, and a blockette chain for a given MSRecord structure begins at MSRecord.blkts. no cap.
blktdata should be the blockette body (no blockette type and next header) of length bytes and type blkttype. yes bestie, body only, don't be sneaking headers in there π
data structures for all SEED 2.4 data blockette types are defined in libmseed.h, with these minor exceptions:
- Blockette 2000 (opaque data) is only partially represented, because it has an unknown data structure by definition π
- Blockette 405, which depends on full SEED for a full data description
it is highly recommended to use these provided data structures when adding blockettes, because it lets the library manipulate the blockette (swap byte order, etc.) and assures SEED 2.4 compatibility. fr fr, do the recommended thing. π«Ά
β RETURN VALUE β
msr_addblockette returns a pointer to the BlktLink structure added to the blockette chain on success, or NULL on error. that's your vibe check right there β pointer means we ate, NULL means we did not π
π SEE ALSO π
π AUTHOR π
Chad Trabant IRIS Data Management Center
and that's the whole page, bestie!! π§ this little writeup is from the Libmseed API, dated 2006/02/27, and it's the MSR_ADDBLOCKETTE(3) page β go forth and chain those blockettes responsibly πβ¨
π¦ where this page comes from
- debian bookworm: libmseed-doc 2.19.8-1 Β· LGPL-3.0-or-later
- debian trixie: libmseed-doc 2.19.8-1 Β· LGPL-3.0-or-later
- fedora 43: libmseed-devel 2.19.5-21.fc43 Β· LGPL-3.0-or-later
- fedora 43: libmseed-devel 2.19.5-21.fc43 Β· LGPL-3.0-or-later
- fedora 44: libmseed-devel 2.19.5-22.fc44 Β· LGPL-3.0-or-later
- fedora 44: libmseed-devel 2.19.5-22.fc44 Β· LGPL-3.0-or-later
- ubuntu jammy: libmseed-doc 2.19.6-3 Β· LGPL-3.0-or-later
- ubuntu noble: libmseed-doc 2.19.8-1ubuntu2 Β· LGPL-3.0-or-later
- ubuntu questing: libmseed-doc 2.19.8-1ubuntu2
- ubuntu resolute: libmseed-doc 2.19.8-1ubuntu3 Β· LGPL-3.0-or-later
- ubuntu stonking: libmseed-doc 2.19.8-1ubuntu3 Β· LGPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms