]> git.llucax.com Git - software/dgc/cdgc.git/blobdiff - rt/gc/cdgc/dynarray.d
Merge iface.d in gc.d
[software/dgc/cdgc.git] / rt / gc / cdgc / dynarray.d
index feddd985411c8842742b498d2da286a48c87635b..1995b7786ec7d428825e97e63b0b7dd62350597e 100644 (file)
@@ -80,11 +80,11 @@ public:
     }
 
     /**
     }
 
     /**
-     * Get the total ammount of bytes the array consumes.
+     * Get the total ammount of bytes the elements consumes (capacity included).
      */
      */
-    size_t size_of()
+    size_t elements_sizeof()
     {
     {
-        return this.sizeof + this._capacity * (T.sizeof + (T*).sizeof);
+        return this._capacity * (T.sizeof + (T*).sizeof);
     }
 
     /**
     }
 
     /**