src/lib/mem_pool.c
int32_t sm_sizeof_pool_memory(const char *fname, int lineno, POOLMEM *obuf)
{
   char *cp = (char *)obuf;

   if (obuf == NULL) {
      Emsg0(M_ABORT, 0, _("obuf is NULL\n"));
   }
   cp -= HEAD_SIZE;
   return ((struct abufhead *)cp)->ablen;
}
/* Return the size of a memory buffer */
Return the size of a memory buffer
Return the size of a memory buffer
int32_t sm_sizeof_pool_memory(const char *fname, int lineno, POOLMEM *obuf)
{
   char *cp = (char *)obuf;
   if (obuf == NULL) {
      Emsg0(M_ABORT, 0, _("obuf is NULL\n"));
   }
   cp -= HEAD_SIZE;
   return ((struct abufhead *)cp)->ablen;
}
int32_t sm_sizeof_pool_memory ( const char * fname , int lineno , POOLMEM * obuf ) { char * cp = ( char * ) obuf ; if ( obuf == NULL ) { Emsg0 ( M_ABORT , 0 , _ ( " \n " ) ) ; } cp -= HEAD_SIZE ; return ( ( struct abufhead * ) cp ) -> ablen ; }
Return the size of a memory buffer
Return the size of a memory buffer