Lines Matching refs:len

49     apr_size_t  len = msg->len;
53 if (len > count)
54 len = count;
58 (len + 15) / 16 * AJP_MSG_DUMP_LINE_LENGTH;
64 " len=%" APR_SIZE_T_FMT " max=%" APR_SIZE_T_FMT "\n",
65 err, msg->pos, msg->len, msg->max_size);
67 for (i = 0; i < len; i += AJP_MSG_DUMP_BYTES_PER_LINE) {
76 line_len = len - i;
146 * @param len Pointer to returned len
149 apr_status_t ajp_msg_check_header(ajp_msg_t *msg, apr_size_t *len)
175 msg->len = msglen + AJP_HEADER_LEN;
177 *len = msglen;
190 msg->len = AJP_HEADER_LEN;
225 apr_size_t len = msg->len - AJP_HEADER_LEN;
236 msg->buf[2] = (apr_byte_t)((len >> 8) & 0xFF);
237 msg->buf[3] = (apr_byte_t)(len & 0xFF);
247 context, msg->pos, msg->len);
260 apr_size_t len = msg->len;
262 if ((len + 4) > msg->max_size) {
266 msg->buf[len] = (apr_byte_t)((value >> 24) & 0xFF);
267 msg->buf[len + 1] = (apr_byte_t)((value >> 16) & 0xFF);
268 msg->buf[len + 2] = (apr_byte_t)((value >> 8) & 0xFF);
269 msg->buf[len + 3] = (apr_byte_t)(value & 0xFF);
271 msg->len += 4;
285 apr_size_t len = msg->len;
287 if ((len + 2) > msg->max_size) {
291 msg->buf[len] = (apr_byte_t)((value >> 8) & 0xFF);
292 msg->buf[len + 1] = (apr_byte_t)(value & 0xFF);
294 msg->len += 2;
308 apr_size_t len = msg->len;
310 if ((len + 1) > msg->max_size) {
314 msg->buf[len] = value;
315 msg->len += 1;
332 apr_size_t len;
338 len = strlen(value);
339 if ((msg->len + len + 3) > msg->max_size) {
344 ajp_msg_append_uint16(msg, (apr_uint16_t)len);
347 memcpy(msg->buf + msg->len, value, len + 1); /* including \0 */
351 ap_xlate_proto_to_ascii((char *)msg->buf + msg->len, len + 1);
354 msg->len += len + 1;
364 * @param valuelen Byte array len
374 if ((msg->len + valuelen) > msg->max_size) {
379 memcpy(msg->buf + msg->len, value, valuelen);
380 msg->len += valuelen;
396 if ((msg->pos + 3) > msg->len) {
421 if ((msg->pos + 1) > msg->len) {
444 if ((msg->pos + 1) > msg->len) {
465 if (msg->pos > msg->len) {
483 if (msg->pos > msg->len) {
525 * @param rvalueLen Pointer where Byte array len will be returned
566 msg->len = 0;
583 if (smsg->len > smsg->max_size) {
587 smsg->len, smsg->max_size);
591 memcpy(dmsg->buf, smsg->buf, smsg->len);
592 dmsg->len = smsg->len;