X-Git-Url: https://git.llucax.com/software/dgc/cdgc.git/blobdiff_plain/7e73b6245c0d7f6af8da2228a2fdbc9404ad69ec..b5e1601adc7b579e9d2366aa2529b07ee6f47fe3:/rt/gc/cdgc/dynarray.d 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); } /**