blob: db6ee4b94fe7a0b834a502f721d8cc096efb83cd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#include "ace/Obchunk.h"
#if defined (ACE_HAS_ALLOC_HOOKS)
# include "ace/Malloc_Base.h"
#endif /* ACE_HAS_ALLOC_HOOKS */
ACE_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_ALLOC_HOOK_DEFINE(ACE_Obchunk)
void
ACE_Obchunk::dump () const
{
#if defined (ACE_HAS_DUMP)
ACE_TRACE ("ACE_Obchunk::dump");
ACELIB_DEBUG ((LM_DEBUG, ACE_BEGIN_DUMP, this));
ACELIB_DEBUG ((LM_DEBUG, ACE_TEXT ("end_ = %x\n"), this->end_));
ACELIB_DEBUG ((LM_DEBUG, ACE_TEXT ("cur_ = %x\n"), this->cur_));
ACELIB_DEBUG ((LM_DEBUG, ACE_END_DUMP));
#endif /* ACE_HAS_DUMP */
}
ACE_Obchunk::ACE_Obchunk (size_t size)
: end_ (contents_ + size),
block_ (contents_),
cur_ (contents_),
next_ (0)
{
}
ACE_END_VERSIONED_NAMESPACE_DECL
|