MCPcopy Create free account
hub / github.com/F-Stack/f-stack / nvpair_get_binary

Function nvpair_get_binary

freebsd/contrib/libnv/bsd_nvpair.c:1848–1859  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1846#endif
1847
1848const void *
1849nvpair_get_binary(const nvpair_t *nvp, size_t *sizep)
1850{
1851
1852 NVPAIR_ASSERT(nvp);
1853 PJDLOG_ASSERT(nvp->nvp_type == NV_TYPE_BINARY);
1854
1855 if (sizep != NULL)
1856 *sizep = nvp->nvp_datasize;
1857
1858 return ((const void *)(intptr_t)nvp->nvp_data);
1859}
1860
1861const bool *
1862nvpair_get_bool_array(const nvpair_t *nvp, size_t *nitems)

Callers 6

nvlist_dumpFunction · 0.85
nvlist_get_binaryFunction · 0.85
nvlist_take_binaryFunction · 0.85
CNVLIST_GET_ARRAYFunction · 0.85
cnvlist_take_binaryFunction · 0.85
nvpair_cloneFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected