def __init__(self, width, field_cls, stream=None, metadata_processor=None):
        """ Create an array field of size "width" from the stream
        """
        super(Array, self).__init__(stream=None, metadata_processor=metadata_processor)

        self.width = width
        self.field_cls = field_cls
        self.items = []
        self.raw_data = None
        self.implicit = False

        if stream is not None:
            self._pfp__parse(stream, save_offset=True)
        else:
            if width is not None:
                for x in six.moves.range(self.width):
                    self.items.append(self.field_cls())
def __init__ ( self , width , field_cls , stream = None , metadata_processor = None ) : super ( Array , self ) . __init__ ( stream = None , metadata_processor = metadata_processor ) self . width = width self . field_cls = field_cls self . items = [ ] self . raw_data = None self . implicit = False if stream is not None : self . _pfp__parse ( stream , save_offset = True ) else : if width is not None : for x in six . moves . range ( self . width ) : self . items . append ( self . field_cls ( ) )
Create an array field of size "width" from the stream