pub unsafe extern "C" fn es_message_size(msg: &es_message_t) -> usizeAvailable on macOS only.
Expand description
Calculate the size of an es_message_t.
This function MUST NOT be used in conjunction with attempting to copy an es_message_t
(e.g. by using the reported size in order to malloc(3) a buffer, and memcpy(3) an
existing es_message_t into that buffer). Doing so will result in use-after-free bugs.
Deprecated in macOS 11+: Please use es_retain_message() to retain an es_message_t.
msg: The message for which the size will be calculated- Returns the size of the message