Lines Matching refs:length
26 /// Default type for passing length of an array.
44 len_type length;
47 Array_ref(len_type length, ptr_type data)
48 : length(length), data(data)
58 : length(other.length), data(other.data)
69 * An Array generally encapsulates a data pointer and a length (number of
78 * of sufficient length. If a message from the server is too large it will
89 /// Make array from length and data pointer.
90 Array(LEN_TYPE length, ELEM_TYPE *data)
91 : Array_ref<ELEM_TYPE, LEN_TYPE>(length, data)
102 : Array_ref<ELEM_TYPE, LEN_TYPE>(other.length, other.data)
130 /// The length of the array
131 LEN_TYPE length;
136 length = a.length;
137 if (length > MAX)
138 length = MAX;
140 for (LEN_TYPE i = 0; i < length; ++i)
206 *reinterpret_cast<LEN *>(msg + offset) = a.length;
208 if (L4_UNLIKELY(!check_size<A>(offset, limit, a.length)))
215 for (LEN i = 0; i < a.length; ++i)
218 return offset + a.length * sizeof(A);
244 a.length = *reinterpret_cast<LEN *>(msg + offset);
246 if (L4_UNLIKELY(!check_size<A>(offset, limit, a.length)))
249 return offset + a.length * sizeof(A);
277 if (l > a.length)
278 l = a.length;
280 a.length = l;
310 a.length = l;
332 a.length = (limit-offset) / sizeof(A);
344 *reinterpret_cast<LEN *>(msg + offset) = a.length;
347 if (L4_UNLIKELY(!check_size<A>(offset, limit, a.length)))
350 return offset + a.length * sizeof(A);