24.47. slapi_entry_size()
When determining the size of an entry, only the sizes of the attribute values are counted; the size of other entry values (such as the size of attribute names, variously-normalized DNs, or any metadata) are not included in the size returned. It is assumed that the size of the metadata, et al., is well enough accounted for by the rounding of the size to the next largest 1k . This holds true especially in larger entries, where the actual size of the attribute values far outweighs the size of the metadata.
#include "slapi-plugin.h" size_t slapi_entry_size(Slapi_Entry *e);
This function takes the following parameter:
|
e
| Entry from which you want the size returned. |
This function returns one of the following values:
- The size of the entry, rounded to the nearest 1k. The value returned is a
size_tdata type with au_longvalue. - A size of 1k if the entry is empty.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.