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

Function ajp_msg_append_uint8

modules/proxy/ajp_msg.c:308–320  ·  view source on GitHub ↗

* Add an unsigned 8bits value to AJP Message * * @param msg AJP Message to get value from * @param value value to add to AJP Message * @return APR_SUCCESS or error */

Source from the content-addressed store, hash-verified

306 * @return APR_SUCCESS or error
307 */
308apr_status_t ajp_msg_append_uint8(ajp_msg_t *msg, apr_byte_t value)
309{
310 apr_size_t len = msg->len;
311
312 if ((len + 1) > msg->max_size) {
313 return ajp_log_overflow(msg, "ajp_msg_append_uint8");
314 }
315
316 msg->buf[len] = value;
317 msg->len += 1;
318
319 return APR_SUCCESS;
320}
321
322/**
323 * Add a String in AJP message, and transform the String in ASCII

Callers 3

ajp_marshal_into_msgbFunction · 0.85
ajp_msg_serialize_pingFunction · 0.85
ajp_msg_serialize_cpingFunction · 0.85

Calls 1

ajp_log_overflowFunction · 0.85

Tested by

no test coverage detected