Re: pack/unpack zero terminated string

2007-05-03 Thread Tim Roberts
tmp123 <[EMAIL PROTECTED]> wrote: > >After review the "struct" documentation, it seems there are no option >to pack/unpack zero terminated strings. Right. Just as there is no way to describe such a thing as a C struct. You'll have to unpack the fields by hand, which is that case won't be hard. --

Re: pack/unpack zero terminated string

2007-05-03 Thread tmp123
On May 2, 11:13 pm, John Machin <[EMAIL PROTECTED]> wrote: > On May 3, 12:01 am, Laurent Pointal <[EMAIL PROTECTED]> wrote: > > > > > > > > >tmp123a écrit : > > > > Hello, > > > > Thanks for your time. > > > > After review the "struct" documentation, it seems there are no option > > > to pack/unpac

Re: pack/unpack zero terminated string

2007-05-02 Thread John Machin
On May 3, 12:01 am, Laurent Pointal <[EMAIL PROTECTED]> wrote: > tmp123 a écrit : > > > Hello, > > > Thanks for your time. > > > After review the "struct" documentation, it seems there are no option > > to pack/unpack zero terminated strings. > > > By example, if the packed data contains: byte + ze

Re: pack/unpack zero terminated string

2007-05-02 Thread Laurent Pointal
tmp123 a écrit : > Hello, > > Thanks for your time. > > After review the "struct" documentation, it seems there are no option > to pack/unpack zero terminated strings. > > By example, if the packed data contains: byte + zero terminated string > + zero terminated string + byte, it seems no possib

Re: pack/unpack zero terminated string

2007-05-02 Thread Laurent Pointal
tmp123 a écrit : > Hello, > > Thanks for your time. > > After review the "struct" documentation, it seems there are no option > to pack/unpack zero terminated strings. > > By example, if the packed data contains: byte + zero terminated string > + zero terminated string + byte, it seems no possib

pack/unpack zero terminated string

2007-05-02 Thread tmp123
Hello, Thanks for your time. After review the "struct" documentation, it seems there are no option to pack/unpack zero terminated strings. By example, if the packed data contains: byte + zero terminated string + zero terminated string + byte, it seems no possible to unpack it using "struct". Pl