Abe Froman
Member
Is there a quick way to grab all the elements of an array?
I'm thinking of something using pointers, but not having to walk the node tree. I was guessing that, since the SQLW for extent vars is the length of all the extents put together, they are all stored sequentially at the same memory location. So, maybe I could just grab a SQLW worth of data at the pointer where the first extent begins and I would have the entire array in one string?
I looked around and couldn't find anything on this exactly, so perhaps one of my hopeful assumptions is incorrect.
I'm thinking of something using pointers, but not having to walk the node tree. I was guessing that, since the SQLW for extent vars is the length of all the extents put together, they are all stored sequentially at the same memory location. So, maybe I could just grab a SQLW worth of data at the pointer where the first extent begins and I would have the entire array in one string?
I looked around and couldn't find anything on this exactly, so perhaps one of my hopeful assumptions is incorrect.