From: Justin Bailey Date: 2006-07-15T00:58:20+09:00 Subject: Re: How to pack/unpack nested structures? ------=_Part_38341_23621423.1152892696217 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 7/14/06, nobu@ruby-lang.org wrote: > > nested_struct = [bufferSize, bufferType, buffer].pack("LLP") > struct = [version, numBuffers, inner_struct].pack("LLP") > > nested_struct.unpack("LLP12") > > If the function alters buffer of struct SecurityBuffer, says it > allocates new buffer and returns it, unpack can't deal with it. > You need DL instead. Would you mind demonstrating how I can use DL to do it? I'd love to use that library but I wasn't able to figure it out ... Thanks for your time and attention! Justin ------=_Part_38341_23621423.1152892696217--