Mercurial > projects > ddmd
comparison dmd/OutBuffer.d @ 178:e3afd1303184
Many small bugs fixed
Made all classes derive from TObject to detect memory leaks (functionality is disabled for now)
Began work on overriding backend memory allocations (to avoid memory leaks)
author | korDen |
---|---|
date | Sun, 17 Oct 2010 07:42:00 +0400 |
parents | 94b6033c07f3 |
children | a4c9de8e39b3 |
comparison
equal
deleted
inserted
replaced
177:1475fd394c9e | 178:e3afd1303184 |
---|---|
8 import core.stdc.string; | 8 import core.stdc.string; |
9 | 9 |
10 import core.memory; | 10 import core.memory; |
11 import core.stdc.stdlib; | 11 import core.stdc.stdlib; |
12 | 12 |
13 class OutBuffer | 13 import dmd.TObject; |
14 | |
15 class OutBuffer : TObject | |
14 { | 16 { |
15 ubyte* data; | 17 ubyte* data; |
16 uint offset; | 18 uint offset; |
17 uint size; | 19 uint size; |
18 | 20 |
19 this() | 21 this() |
20 { | 22 { |
23 register(); | |
21 // do nothing | 24 // do nothing |
22 } | 25 } |
23 | 26 |
24 final void* extractData() | 27 final void* extractData() |
25 { | 28 { |