Package peppy :: Package lib :: Module structrecord :: Class MetaSizeList
[frames] | no frames]

Class MetaSizeList

      object --+                
               |                
debug.debugmixin --+            
                   |            
               Field --+        
                       |        
                 Wrapper --+    
                           |    
                     Adapter --+
                               |
                              MetaSizeList

This structure is for when you know the length of the field, but you don't know how many elements are in the field. The elements are parsed until the field runs out of bytes. Upon writing, the field length will have to be changed to match the number of elements if the number of elements has changed.

Instance Methods
 
__init__(self, proxy, func)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
decode(self, value, obj)
 
encode(self, value, obj)

Inherited from Adapter: pack, unpack

Inherited from Wrapper: getNumBytes, getProxy, storeDefault

Inherited from Field: __str__, getCopy, read

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__

Class Methods

Inherited from debug.debugmixin: dprint

Class Variables
  debuglevel = 0

Inherited from Field: print_all

Properties

Inherited from object: __class__

Method Details

__init__(self, proxy, func)
(Constructor)

 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

decode(self, value, obj)

 
Overrides: Adapter.decode

encode(self, value, obj)

 
Overrides: Adapter.encode