Lines Matching defs:datalength
39 * On entry, datalength is input as the number of valid bytes following
50 uint32_t *datalength,/* IN/OUT - number of valid bytes left in buffer */
77 if (asn_length + (uint32_t)(bufp - data) > *datalength){
86 *datalength -= asn_length + (uint32_t)(bufp - data);
97 * On entry, datalength is input as the number of valid bytes following
108 uint32_t * datalength,/* IN/OUT - number of valid bytes left in buffer */
134 if (asn_length + (uint32_t)(bufp - data) > *datalength){
144 *datalength -= asn_length + (uint32_t)(bufp - data);
156 * On entry, datalength is input as the number of valid bytes following
167 uint32_t * datalength,/* IN/OUT - number of valid bytes left in buffer */
197 data = asn_build_header(data, datalength, type, intsize, error_label);
200 if (*datalength < intsize)
202 *datalength -= intsize;
217 * On entry, datalength is input as the number of valid bytes following
228 uint32_t *datalength,/* IN/OUT - number of valid bytes left in buffer */
267 data = asn_build_header(data, datalength, type, intsize, error_label);
270 if (*datalength < intsize)
272 *datalength -= intsize;
290 * On entry, datalength is input as the number of valid bytes following
303 uint32_t *datalength, /* IN/OUT - number of valid bytes left in buffer */
326 if (asn_length + (uint32_t)(bufp - data) > *datalength){
337 *datalength -= asn_length + (uint32_t)(bufp - data);
344 * On entry, datalength is input as the number of valid bytes following
355 uint32_t *datalength, /* IN/OUT - number of valid bytes left in buffer */
370 data = asn_build_header(data, datalength, type, strlength, error_label);
373 if (*datalength < strlength)
376 *datalength -= strlength;
383 * On entry, datalength is input as the number of valid bytes following
393 uint32_t * datalength,/* IN/OUT - number of valid bytes left in buffer */
415 if (header_len + asn_length > *datalength){
419 *datalength = asn_length;
426 * On entry, datalength is input as the number of valid bytes following
439 uint32_t *datalength,/* IN/OUT - number of valid bytes left in buffer */
446 if (*datalength == 0)
449 (*datalength)--;
450 return asn_build_length(data, datalength, length, error_label);
495 uint32_t *datalength, /* IN/OUT - number of valid bytes left in buffer */
505 if (*datalength < 1)
510 if (*datalength < 2)
517 if (*datalength < 3)
527 *datalength -= (uint32_t)(data - start_data);
537 * On entry, datalength is input as the number of valid bytes following
550 uint32_t *datalength, /* IN/OUT - number of valid bytes left in buffer */
576 if (asn_length + (uint32_t)(bufp - data) > *datalength){
581 *datalength -= asn_length + (uint32_t)(bufp - data);
617 * On entry, datalength is input as the number of valid bytes following
628 uint32_t *datalength, /* IN/OUT - number of valid bytes left in buffer */
686 data = asn_build_header(data, datalength, type, asnlength, error_label);
689 if (*datalength < asnlength)
692 *datalength -= asnlength;
698 * On entry, datalength is input as the number of valid bytes following
709 uint32_t *datalength, /* IN/OUT - number of valid bytes left in buffer */
731 *datalength -= (uint32_t)(bufp - data);
737 * On entry, datalength is input as the number of valid bytes following
748 uint32_t *datalength, /* IN/OUT - number of valid bytes left in buffer */
757 return asn_build_header(data, datalength, type, 0, error_label);