AUTOSIZE CArray in protlib
<p>I saw in another thread while searching for protlib that you are the author of this awesome library. I have a question about the library if that is ok.</p>

<p>I have a CStruct that I want to nest in another CStruct as such:</p>

<pre><code>class Result(CStruct):
    index = CUInt(default=0)
    size  = CUInt(default=0)
    name  = CString(length=AUTOSIZED, default="")

class QueryHit(CStruct):                                                                                                             
    ip         = CUInt(default=0)
    speed      = CUShort(default=0)
    results    = CArray(AUTOSIZED, Result, default=[Result(0, 0, "")])
    serv_id    = CString(length=16, default="")
</code></pre>

<p>It says in your documentation that AUTOSIZE is only to be used with CString or CUnicode. How would you suggest that I go about getting the effect of having a variable size list of Results that get serialized down to on N (the number of items in the list) elements? I don't want a fixed oversized list that will serialize a bunch of extra elements. I also have a question about CStruct inheritance where the child class adds fields to the parent class but I have a workaround for this and may bring it up later if the dialog permits.</p>

<p>Thanks</p>
