packages/Utils/rng/RNG.cc
//---------------------------------------------------------------------------//
/*!
 * \brief Return the size of the packed character stream.
 *
 * \return the size
 */
\brief Return the size of the packed character stream.
\return the size
\ brief Return the size of the packed character stream . \ return the size
int RNG::get_size() const
{
    REQUIRE(d_streamid);
    if (d_packed_size > 0)
        return d_packed_size;
    char *prng    = 0;
    int rng_size  = pack_sprng(d_streamid->id, &prng);
    d_packed_size = rng_size + 2 * sizeof(int);
    std::free(prng);
    return d_packed_size;
}
int RNG :: get_size ( ) const { REQUIRE ( d_streamid ) ; if ( d_packed_size > 0 ) return d_packed_size ; char * prng = 0 ; int rng_size = pack_sprng ( d_streamid -> id , & prng ) ; d_packed_size = rng_size + 2 * sizeof ( int ) ; std :: free ( prng ) ; return d_packed_size ; }
\brief Return the size of the packed character stream.
\ brief Return the size of the packed character stream .
// clear memory