Lines Matching defs:length
615 * to calculate each offset based on the previous one and the length
660 u8 length;
664 length = *block++;
666 if (length && length <= 8)
667 while (length--)
670 ldm_error ("Illegal length %d.", length);
676 * ldm_get_vstr - Read a length-prefixed string into a buffer
677 * @block: Pointer to the length marker
682 * they are prefixed by a one byte length marker. This function copies one of
689 * n, String length in characters (excluding NULL)
694 int length;
698 length = block[0];
699 if (length >= buflen) {
700 ldm_error ("Truncating string %d -> %d.", length, buflen);
701 length = buflen - 1;
703 memcpy (buffer, block + 1, length);
704 buffer[length] = 0;
705 return length;