Changeset 3
- Timestamp:
- 06/17/04 11:59:32 (3 years ago)
- Files:
-
- trunk/AprSharp/dev/src/AprPool.cs (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/AprSharp/dev/src/AprPool.cs
r1 r3 74 74 75 75 public static AprPool Create(AprPool pool, AprAllocator allocator) 76 76 { 77 77 IntPtr ptr; 78 78 … … 90 90 { 91 91 CheckPtr(); 92 Debug.Write(String.Format("apr_pool_destroy({0:X})...", ((Int32)mPool)));92 Debug.Write(String.Format("apr_pool_destroy({0:X})...",this)); 93 93 Apr.apr_pool_destroy(mPool); 94 94 Debug.WriteLine("Done"); … … 99 99 { 100 100 CheckPtr(); 101 Debug.Write(String.Format("apr_pool_clear({0:X})...", ((Int32)mPool)));101 Debug.Write(String.Format("apr_pool_clear({0:X})...",this)); 102 102 Apr.apr_pool_clear(mPool); 103 103 Debug.WriteLine("Done"); … … 113 113 { 114 114 CheckPtr(); 115 Debug.WriteLine(String.Format("apr_palloc({0:X})", ((Int32)mPool)));115 Debug.WriteLine(String.Format("apr_palloc({0:X})",this)); 116 116 return((byte *)Apr.apr_palloc(mPool, size)); 117 117 } … … 126 126 { 127 127 CheckPtr(); 128 Debug.WriteLine(String.Format("apr_pcalloc({0:X})", ((Int32)mPool)));128 Debug.WriteLine(String.Format("apr_pcalloc({0:X})",this)); 129 129 return((byte *)Apr.apr_pcalloc(mPool, size)); 130 130 } … … 133 133 { 134 134 CheckPtr(); 135 Debug.WriteLine(String.Format("apr_pool_is_ancestor({0:X},{1:X})", ((Int32)mPool),((Int32)pool.mPool)));135 Debug.WriteLine(String.Format("apr_pool_is_ancestor({0:X},{1:X})",this,pool)); 136 136 return((Apr.apr_pool_is_ancestor(mPool,pool) == 0) ? false : true); 137 137 } … … 142 142 { 143 143 get { 144 Debug.WriteLine(String.Format("apr_pool_allocator_get({0:X})", ((Int32)mPool)));144 Debug.WriteLine(String.Format("apr_pool_allocator_get({0:X})",this)); 145 145 return(Apr.apr_pool_allocator_get(mPool)); 146 146 } … … 150 150 { 151 151 get { 152 Debug.WriteLine(String.Format("apr_pool_parent_get({0:X})", ((Int32)mPool)));152 Debug.WriteLine(String.Format("apr_pool_parent_get({0:X})",this)); 153 153 return(Apr.apr_pool_parent_get(mPool)); 154 154 }