X-Git-Url: https://git.llucax.com/software/dgc/cdgc.git/blobdiff_plain/7e73b6245c0d7f6af8da2228a2fdbc9404ad69ec..15b00d2668aff0f632ebf9e187496f45720dfb32:/rt/gc/cdgc/dynarray.d?ds=inline diff --git a/rt/gc/cdgc/dynarray.d b/rt/gc/cdgc/dynarray.d index feddd98..1995b77 100644 --- a/rt/gc/cdgc/dynarray.d +++ b/rt/gc/cdgc/dynarray.d @@ -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); } /**