struct size

12 views
Skip to first unread message

Andrew Penhorwood

unread,
Nov 20, 2009, 8:11:40 AM11/20/09
to Railo
Did we have a getSize() function for returning the size (memory usage)
of a structure? I found a post by Gert about it but now it does not
seem to work.

Todd Rafferty

unread,
Nov 20, 2009, 8:14:41 AM11/20/09
to ra...@googlegroups.com
According to a recent mailing list thread, getSize(application_name) is the usage, I don't think you can use it on a struct.

You can search the group list:
http://groups.google.com/group/railo/search?group=railo&q=getSize&qt_g=Search+this+group

~Todd Rafferty ** Volunteer Railo Open Source Community Manager ** http://getrailo.org/

Gert Franz

unread,
Nov 20, 2009, 11:12:43 AM11/20/09
to ra...@googlegroups.com

I might be wrong, but wasn’t it the sizeOf() function? That should work on all the variable types available in Railo.

 

So it’s sizeOf(struct) and that should work!

 

Greetings from Switzerland

Gert Franz

 

Railo Technologies       Professional Open Source

skype: gert.franz            ge...@getrailo.com

+41 76 5680 231               www.getrailo.com

--

You received this message because you are subscribed to the Google Groups "Railo" group.
To post to this group, send email to ra...@googlegroups.com.
To unsubscribe from this group, send email to railo+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/railo?hl=.

Todd Rafferty

unread,
Nov 20, 2009, 11:15:01 AM11/20/09
to ra...@googlegroups.com
Thanks Gert!


~Todd Rafferty ** Volunteer Railo Open Source Community Manager ** http://getrailo.org/

Andrew Penhorwood

unread,
Nov 20, 2009, 2:38:19 PM11/20/09
to Railo
Yes that works. Very cool.

Andrew Penhorwood

On Nov 20, 11:12 am, "Gert Franz" <g...@getrailo.com> wrote:
> I might be wrong, but wasn't it the sizeOf() function? That should work on
> all the variable types available in Railo.
>
> So it's sizeOf(struct) and that should work!
>
> Greetings from Switzerland
>
> Gert Franz
>
> Railo Technologies       Professional Open Source
>
> skype: gert.franz             <mailto:gert.fr...@railo.ch> g...@getrailo.com
>
> +41 76 5680 231                <http://www.railo.ch/>www.getrailo.com
>
> Von: web...@gmail.com [mailto:web...@gmail.com] Im Auftrag von Todd Rafferty
> Gesendet: Freitag, 20. November 2009 14:15
> An: ra...@googlegroups.com
> Betreff: Re: [railo] struct size
>
> According to a recent mailing list thread, getSize(application_name) is the
> usage, I don't think you can use it on a struct.
>
> You can search the group list:http://groups.google.com/group/railo/search?group=railo
> <http://groups.google.com/group/railo/search?group=railo&q=getSize&qt_...
> ch+this+group> &q=getSize&qt_g=Search+this+group
>
> ~Todd Rafferty ** Volunteer Railo Open Source Community Manager **http://getrailo.org/
Reply all
Reply to author
Forward
0 new messages