ec_message_is_large

March 26, 2020 Contributors

Name

ec_message_is_large — Indicates if a message is large

Synopsis

#include "ec_message.h"

| int **ec_message_is_large** ( | msg); |   |

ec_message * <var class="pdparam">msg</var>;

Description

Indicates whether or not a message is "large", which is configurable and determined by the value of the large_message_threshold option. If a message is large, we do not keep its entire body in memory.

Parameters

msg

A pointer to an ec_message struct. For documentation of this data structure see “ec_message”

Return Values

Returns 1 if the message is large, 0 otherwise.

Threading

It is legal to call this function in any thread.