(self, data)
Load data on all sliced buffers.
Load data on all sliced buffers.
Load data on all sliced buffers .
def load(self, data):
        """Load data on all sliced buffers."""
        for buffer, (pos, size) in zip(self.buffers, self.slicer.slices):
            # WARNING: putting self.location instead of None ==> SEGFAULT on Linux with Nvidia drivers
            Attribute.bind(buffer, None)
            Attribute.load(data[pos:pos + size,...])
def load ( self , data ) : for buffer , ( pos , size ) in zip ( self . buffers , self . slicer . slices ) : # WARNING: putting self.location instead of None ==> SEGFAULT on Linux with Nvidia drivers Attribute . bind ( buffer , None ) Attribute . load ( data [ pos : pos + size , ... ] )