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

Function dnvlist_take_binary

freebsd/contrib/libnv/dnvlist.c:115–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113#undef DNVLIST_TAKE
114
115void *
116dnvlist_take_binary(nvlist_t *nvl, const char *name, size_t *sizep,
117 void *defval, size_t defsize)
118{
119 void *value;
120
121 if (nvlist_exists_binary(nvl, name))
122 value = nvlist_take_binary(nvl, name, sizep);
123 else {
124 if (sizep != NULL)
125 *sizep = defsize;
126 value = defval;
127 }
128 return (value);
129}
130

Callers

nothing calls this directly

Calls 1

nvlist_take_binaryFunction · 0.85

Tested by

no test coverage detected