Lines Matching refs:buflen
105 u_char *const buf, int *buflen, enum comptype ctype);
111 int *buflen, enum comptype ctype);
147 const char *string, int *off, u_char *buf, int *buflen) in ng_parse() argument
149 return INVOKE(type, parse)(type, string, off, buf, buf, buflen); in ng_parse()
168 ng_parse_getDefault(const struct ng_parse_type *type, u_char *buf, int *buflen) in ng_parse_getDefault() argument
174 return (*func)(type, buf, buf, buflen); in ng_parse_getDefault()
184 u_char *const buf, int *buflen) in ng_struct_parse() argument
186 return ng_parse_composite(type, s, off, start, buf, buflen, CT_STRUCT); in ng_struct_parse()
198 const u_char *const start, u_char *buf, int *buflen) in ng_struct_getDefault() argument
203 "{}", &off, start, buf, buflen, CT_STRUCT); in ng_struct_getDefault()
238 u_char *const buf, int *buflen) in ng_fixedarray_parse() argument
241 s, off, start, buf, buflen, CT_FIXEDARRAY); in ng_fixedarray_parse()
254 const u_char *const start, u_char *buf, int *buflen) in ng_fixedarray_getDefault() argument
259 "[]", &off, start, buf, buflen, CT_FIXEDARRAY); in ng_fixedarray_getDefault()
287 u_char *const buf, int *buflen) in ng_array_parse() argument
289 return ng_parse_composite(type, s, off, start, buf, buflen, CT_ARRAY); in ng_array_parse()
301 const u_char *const start, u_char *buf, int *buflen) in ng_array_getDefault() argument
306 "[]", &off, start, buf, buflen, CT_ARRAY); in ng_array_getDefault()
334 u_char *const buf, int *buflen) in ng_int8_parse() argument
346 *buflen = sizeof(int8_t); in ng_int8_parse()
384 const u_char *const start, u_char *buf, int *buflen) in ng_int8_getDefault() argument
388 if (*buflen < sizeof(int8_t)) in ng_int8_getDefault()
392 *buflen = sizeof(int8_t); in ng_int8_getDefault()
429 u_char *const buf, int *buflen) in ng_int16_parse() argument
442 *buflen = sizeof(int16_t); in ng_int16_parse()
480 const u_char *const start, u_char *buf, int *buflen) in ng_int16_getDefault() argument
484 if (*buflen < sizeof(int16_t)) in ng_int16_getDefault()
488 *buflen = sizeof(int16_t); in ng_int16_getDefault()
525 u_char *const buf, int *buflen) in ng_int32_parse() argument
541 *buflen = sizeof(int32_t); in ng_int32_parse()
579 const u_char *const start, u_char *buf, int *buflen) in ng_int32_getDefault() argument
583 if (*buflen < sizeof(int32_t)) in ng_int32_getDefault()
587 *buflen = sizeof(int32_t); in ng_int32_getDefault()
624 u_char *const buf, int *buflen) in ng_int64_parse() argument
636 *buflen = sizeof(int64_t); in ng_int64_parse()
674 const u_char *const start, u_char *buf, int *buflen) in ng_int64_getDefault() argument
678 if (*buflen < sizeof(int64_t)) in ng_int64_getDefault()
682 *buflen = sizeof(int64_t); in ng_int64_getDefault()
719 u_char *const buf, int *buflen) in ng_string_parse() argument
730 *buflen = slen + 1; in ng_string_parse()
755 const u_char *const start, u_char *buf, int *buflen) in ng_string_getDefault() argument
758 if (*buflen < 1) in ng_string_getDefault()
761 *buflen = 1; in ng_string_getDefault()
782 u_char *const buf, int *buflen) in ng_fixedstring_parse() argument
799 *buflen = fi->bufSize; in ng_fixedstring_parse()
818 const u_char *const start, u_char *buf, int *buflen) in ng_fixedstring_getDefault() argument
822 if (*buflen < fi->bufSize) in ng_fixedstring_getDefault()
825 *buflen = fi->bufSize; in ng_fixedstring_getDefault()
886 u_char *const buf, int *buflen) in ng_sizedstring_parse() argument
902 *buflen = 2 + slen; in ng_sizedstring_parse()
928 const u_char *const start, u_char *buf, int *buflen) in ng_sizedstring_getDefault() argument
930 if (*buflen < 2) in ng_sizedstring_getDefault()
933 *buflen = 2; in ng_sizedstring_getDefault()
954 u_char *const buf, int *buflen) in ng_ipaddr_parse() argument
960 s, off, start, buf + i, buflen)) != 0) in ng_ipaddr_parse()
968 *buflen = 4; in ng_ipaddr_parse()
990 const u_char *const start, u_char *buf, int *buflen) in ng_ipaddr_getDefault() argument
994 if (*buflen < sizeof(ip)) in ng_ipaddr_getDefault()
997 *buflen = sizeof(ip); in ng_ipaddr_getDefault()
1018 u_char *const buf, int *const buflen) in ng_enaddr_parse() argument
1024 if (*buflen < ETHER_ADDR_LEN) in ng_enaddr_parse()
1038 *buflen = ETHER_ADDR_LEN; in ng_enaddr_parse()
1095 u_char *const buf, int *buflen) in ng_bytearray_parse() argument
1107 if (arraylen > *buflen) { in ng_bytearray_parse()
1119 *buflen = arraylen; in ng_bytearray_parse()
1126 return ng_array_parse(&subtype, s, off, start, buf, buflen); in ng_bytearray_parse()
1143 const u_char *const start, u_char *buf, int *buflen) in ng_bytearray_getDefault() argument
1149 return ng_array_getDefault(&subtype, start, buf, buflen); in ng_bytearray_getDefault()
1200 int *off, const u_char *const start, u_char *const buf, int *buflen, in ng_parse_composite() argument
1333 if (blen >= *buflen) { in ng_parse_composite()
1341 vlen = *buflen - blen; in ng_parse_composite()
1358 if (blen >= *buflen) { in ng_parse_composite()
1367 *buflen = blen; in ng_parse_composite()
1472 int index, const u_char *const start, u_char *buf, int *buflen, in ng_get_composite_elem_default() argument
1487 index, start, buf, buflen); in ng_get_composite_elem_default()
1497 index, start, buf, buflen); in ng_get_composite_elem_default()
1510 return (*func)(etype, start, buf, buflen); in ng_get_composite_elem_default()