Lines Matching defs:encoding
2021 * encoding / decoding of a nvlist header (nvlist_t)
2025 * responsible for the first part of encoding / decoding of an nvpair
2029 * second part of encoding / decoding of an nvpair
2032 * calculates the encoding size of an nvpair
2046 char nvh_encoding; /* nvs encoding method */
2253 nvlist_common(nvlist_t *nvl, char *buf, size_t *buflen, int encoding,
2275 * used for encoding method and host endian.
2282 nvh->nvh_encoding = encoding;
2292 /* get method of encoding from first byte */
2293 encoding = nvh->nvh_encoding;
2301 * add the size for encoding
2311 * Create an nvstream with proper encoding method
2313 switch (encoding) {
2335 nvlist_size(nvlist_t *nvl, size_t *size, int encoding)
2337 return (nvlist_common(nvl, NULL, size, encoding, NVS_OP_GETSIZE));
2345 nvlist_pack(nvlist_t *nvl, char **bufp, size_t *buflen, int encoding,
2349 return (nvlist_xpack(nvl, bufp, buflen, encoding,
2352 return (nvlist_xpack(nvl, bufp, buflen, encoding, nv_alloc_nosleep));
2357 nvlist_xpack(nvlist_t *nvl, char **bufp, size_t *buflen, int encoding,
2369 return (nvlist_common(nvl, *bufp, buflen, encoding,
2386 if ((err = nvlist_size(nvl, &alloc_size, encoding)))
2392 if ((err = nvlist_common(nvl, buf, &alloc_size, encoding,
2439 * Native encoding functions
2814 * XDR encoding functions
2818 * - encoding methode and host endian (4 bytes)
3203 * See comments above nvpair_xdr_op() for the format of xdr encoding.