MCPcopy Create free account
hub / github.com/apache/httpd / ajp_msg_peek_uint8

Function ajp_msg_peek_uint8

modules/proxy/ajp_msg.c:465–473  ·  view source on GitHub ↗

* Peek a 8bits unsigned value from AJP Message, position in message * is not updated * * @param msg AJP Message to get value from * @param rvalue Pointer where value will be returned * @return APR_SUCCESS or error */

Source from the content-addressed store, hash-verified

463 * @return APR_SUCCESS or error
464 */
465apr_status_t ajp_msg_peek_uint8(ajp_msg_t *msg, apr_byte_t *rvalue)
466{
467 if (msg->pos >= msg->len) {
468 return ajp_log_overflow(msg, "ajp_msg_peek_uint8");
469 }
470
471 *rvalue = msg->buf[msg->pos];
472 return APR_SUCCESS;
473}
474
475/**
476 * Get a 8bits unsigned value from AJP Message

Callers 2

ajp_read_headerFunction · 0.85
ajp_parse_typeFunction · 0.85

Calls 1

ajp_log_overflowFunction · 0.85

Tested by

no test coverage detected