Lines Matching refs:input_len
155 * Puts \p input_len bytes from the \p input buffer into the ring buffer \p buf.
160 * \retval \p input_len, if the data fits.
161 * \retval 0 <= value < \p input_len, if the data does not fit.
162 * \retval -1, if \p buf is NULL, it hasn't been set up or \p input_len is not
166 const unsigned char *input, size_t input_len )
173 /* Reduce input_len to a number that fits in the buffer. */
174 if ( ( buf->content_length + input_len ) > buf->capacity )
176 input_len = buf->capacity - buf->content_length;
181 return ( input_len == 0 ) ? 0 : -1;
191 if( buf->start + buf->content_length + input_len
194 overflow = ( buf->start + buf->content_length + input_len )
199 input_len - overflow );
200 memcpy( buf->buffer, input + input_len - overflow, overflow );
207 input, input_len );
210 buf->content_length += input_len;
211 return input_len;
2138 size_t input_len;
2167 input_len = 0;
2173 input_len += put_ret[j];
2178 if( input_len == 0 )
2179 input_len = 1;
2180 ASSERT_ALLOC( input, input_len );
2190 TEST_ASSERT( output_len <= input_len );
2199 for( i = 0; i < input_len; i++ )