Getting byte size of POD classes and dynamic arrays
1100110
0b1100110 at gmail.com
Thu May 16 06:11:35 PDT 2013
On 05/16/2013 08:09 AM, Byron Heads wrote:
> I am working on d-leveldb wrapper (https://github.com/bheads/d-leveldb)
> and I need to be able to pass blocks of data between D and leveldb API.
> I am having rouble getting the byte size of dynamic arrays and POD
> classes.
>
> I can get the right size for 1D dynamic arrays, need a way to compute the
> total size.
>
> POD Classes always give me the size of the ref, is it possible?
>
> -Byron
__traits(classInstanceSize, MyClass); ?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20130516/23202320/attachment.pgp>
More information about the Digitalmars-d-learn
mailing list