Lines Matching refs:src
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
39 uchar_t *src = s_start;
41 uchar_t *s_end = src + s_len;
44 while (src < s_end && dst < d_end - 1) {
45 uchar_t *first = src;
47 if (src[0] == 0) {
48 uchar_t *last = src + (256 - n);
49 while (src < MIN(last, s_end) && src[0] == 0)
50 src++;
51 *len = src - first - 1 + n;
53 uchar_t *last = src + n;
56 while (src < MIN(last, s_end) - 1 && (src[0] | src[1]))
57 *dst++ = *src++;
58 if (src[0])
59 *dst++ = *src++;
60 *len = src - first - 1;
63 return (src == s_end ? dst - (uchar_t *)d_start : s_len);
69 uchar_t *src = s_start;
71 uchar_t *s_end = src + s_len;
74 while (src < s_end && dst < d_end) {
75 int len = 1 + *src++;
78 *dst++ = *src++;