The only way I know to reliably do this is through the sizeOf Project:
http://sizeof.sourceforge.net/

But this does mean you have to include an agent with your JVM, and I don't
know what the overhead of that agent will be.

Mark

On Wed, Nov 18, 2009 at 11:38 AM, BarryC <[email protected]> wrote:

> Hi,
>
> Does anybody know if there is a way in coldfusion (or the underlying
> java language) to calculate the size of a variable in bytes?
>
> I want to calculate the size of a struct in bytes, but I cannot find a
> way to calculate it and there doesn't look to be any function that
> does it?
>
> Thanks :)
>
> Barry
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "cfaussie" group.
> To post to this group, send email to [email protected].
> For more options, visit this group at
> http://groups.google.com/group/cfaussie?hl=.
>
>
>


-- 
E: [email protected]
T: http://www.twitter.com/neurotic
W: www.compoundtheory.com

--

You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to [email protected].
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=.


Reply via email to