Lines Matching defs:native

2775 	 * the native format.  n_base points to a buffer containing the
2790 nvs_native_create(nvstream_t *nvs, nvs_native_t *native, char *buf,
2796 nvs->nvs_private = native;
2797 native->n_curr = native->n_base = buf;
2798 native->n_end = buf + buflen;
2799 native->n_flag = 0;
2803 nvs->nvs_private = native;
2804 native->n_curr = native->n_base = native->n_end = NULL;
2805 native->n_flag = 0;
2821 nvs_native_t *native = (nvs_native_t *)nvs->nvs_private;
2823 if (native->n_curr + size > native->n_end)
2832 memcpy(native->n_curr, buf, size);
2835 memcpy(buf, native->n_curr, size);
2841 native->n_curr += size;
2851 nvs_native_t *native = nvs->nvs_private;
2856 if (native->n_flag)
2859 native->n_flag = 1;
2876 if (native->n_flag) {
2879 native->n_flag = 1;
2894 nvs_native_t *native = (nvs_native_t *)nvs->nvs_private;
2899 if (native->n_curr + sizeof (int) > native->n_end)
2902 memset(native->n_curr, 0, sizeof (int));
2903 native->n_curr += sizeof (int);
2913 nvs_native_t *native = (nvs_native_t *)nvs->nvs_private;
2915 (native->n_curr - nvp->nvp_size + NVP_VALOFF(nvp));
2932 nvs_native_t *native = (nvs_native_t *)nvs->nvs_private;
2933 char *value = native->n_curr - nvp->nvp_size + NVP_VALOFF(nvp);
2962 nvs_native_t *native = (nvs_native_t *)nvs->nvs_private;
2964 (native->n_curr - nvp->nvp_size + NVP_VALOFF(nvp));
3087 nvs_native_t *native = (nvs_native_t *)nvs->nvs_private;
3091 if (native->n_curr + sizeof (int32_t) > native->n_end)
3093 memcpy(&decode_len, native->n_curr, sizeof (int32_t));
3097 decode_len > native->n_end - native->n_curr)
3108 native->n_curr += sizeof (int32_t);
3130 nvs_native_t native;
3135 if ((err = nvs_native_create(nvs, &native, buf + sizeof (nvs_header_t),