Lines Matching refs:cbuflen
107 const u_char *data, int *off, char *cbuf, int cbuflen,
157 const u_char *data, char *cbuf, int cbuflen) in ng_unparse() argument
161 return INVOKE(type, unparse)(type, data, &off, cbuf, cbuflen); in ng_unparse()
191 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_struct_unparse() argument
193 return ng_unparse_composite(type, data, off, cbuf, cbuflen, CT_STRUCT); in ng_struct_unparse()
246 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_fixedarray_unparse() argument
249 data, off, cbuf, cbuflen, CT_FIXEDARRAY); in ng_fixedarray_unparse()
294 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_array_unparse() argument
296 return ng_unparse_composite(type, data, off, cbuf, cbuflen, CT_ARRAY); in ng_array_unparse()
352 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_int8_unparse() argument
376 if ((error = ng_parse_append(&cbuf, &cbuflen, fmt, fval)) != 0) in ng_int8_unparse()
448 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_int16_unparse() argument
472 if ((error = ng_parse_append(&cbuf, &cbuflen, fmt, fval)) != 0) in ng_int16_unparse()
547 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_int32_unparse() argument
571 if ((error = ng_parse_append(&cbuf, &cbuflen, fmt, fval)) != 0) in ng_int32_unparse()
642 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_int64_unparse() argument
666 if ((error = ng_parse_append(&cbuf, &cbuflen, fmt, fval)) != 0) in ng_int64_unparse()
736 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_string_unparse() argument
744 if ((error = ng_parse_append(&cbuf, &cbuflen, "%s", s)) != 0) { in ng_string_unparse()
805 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_fixedstring_unparse() argument
810 if ((error = ng_string_unparse(type, data, &temp, cbuf, cbuflen)) != 0) in ng_fixedstring_unparse()
908 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_sizedstring_unparse() argument
917 if ((error = ng_parse_append(&cbuf, &cbuflen, "%s", s)) != 0) { in ng_sizedstring_unparse()
974 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_ipaddr_unparse() argument
980 if ((error = ng_parse_append(&cbuf, &cbuflen, "%d.%d.%d.%d", in ng_ipaddr_unparse()
1044 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_enaddr_unparse() argument
1048 len = snprintf(cbuf, cbuflen, "%02x:%02x:%02x:%02x:%02x:%02x", in ng_enaddr_unparse()
1051 if (len >= cbuflen) in ng_enaddr_unparse()
1132 const u_char *data, int *off, char *cbuf, int cbuflen) in ng_bytearray_unparse() argument
1138 return ng_array_unparse(&subtype, data, off, cbuf, cbuflen); in ng_bytearray_unparse()
1379 int *off, char *cbuf, int cbuflen, const enum comptype ctype) in ng_unparse_composite() argument
1395 if ((error = ng_parse_append(&cbuf, &cbuflen, "%c", in ng_unparse_composite()
1426 if ((error = ng_parse_append(&cbuf, &cbuflen, " ")) != 0) in ng_unparse_composite()
1432 &cbuflen, "%d=", index)) != 0) in ng_unparse_composite()
1441 &cbuflen, "%s=", fields[index].name)) != 0) in ng_unparse_composite()
1447 (etype, data, off, cbuf, cbuflen)) != 0) { in ng_unparse_composite()
1451 cbuflen -= strlen(cbuf); in ng_unparse_composite()
1457 error = ng_parse_append(&cbuf, &cbuflen, "%s%c", in ng_unparse_composite()