Re: How can I get the total memory size of a Jagged Array

2023-11-14 Thread novice2 via Digitalmars-d-learn
may be std.string.representation() may help? https://dlang.org/phobos/std_string.html#.representation byteSize = representation(myString).length;

Re: How can I get the total memory size of a Jagged Array

2023-11-14 Thread Alexandru Ermicioi via Digitalmars-d-learn
On Monday, 13 November 2023 at 14:15:31 UTC, seany wrote: Is there a better way? I want a method that works for every variable type including classes and objects. Thank you Perhaps, use length property of string. It should tell you length of a string and then you multiply it by size of cha