Print RAM used by arrays

Giovanni Di Maria calimero22 at yahoo.it
Thu Dec 13 21:32:16 UTC 2018


Hi.
How can I know the amount of RAM allocated by a vector?

For example:

string[8][1000] array;
for(int i=0;i<1000;i++) {
    
array[i]=["1111","2222","3333","4444","5555","6666","7777","8888"];
}

how can I know the amount of bytes of above matrix?
Can I clean the memory ofter his use, without use GC?

Thank you to everybody

Giovanni Di Maria



More information about the Digitalmars-d-learn mailing list