Do you need to be calculating at run time? Or is this for tracking down a memory issue?
Mark On Wed, Nov 18, 2009 at 1:16 PM, Barry Chesterman <barrychester...@gmail.com > wrote: > unfortunately it requires java 5 and we only have java 4 :( > > > On Wed, Nov 18, 2009 at 1:57 PM, Barry Chesterman < > barrychester...@gmail.com> wrote: > >> Cool, thanks I'll give it a try >> >> >> On Wed, Nov 18, 2009 at 1:53 PM, Mark Mandel <mark.man...@gmail.com>wrote: >> >>> 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 <barrychester...@gmail.com>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 cfaus...@googlegroups.com. >>>> For more options, visit this group at >>>> http://groups.google.com/group/cfaussie?hl=. >>>> >>>> >>>> >>> >>> >>> -- >>> E: mark.man...@gmail.com >>> 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 cfaus...@googlegroups.com. >>> For more options, visit this group at >>> http://groups.google.com/group/cfaussie?hl=. >>> >> >> > -- > You received this message because you are subscribed to the Google Groups > "cfaussie" group. > To post to this group, send email to cfaus...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/cfaussie?hl=. > -- E: mark.man...@gmail.com 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 cfaus...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/cfaussie?hl=.