Exemplo n.º 1
0
 def byptr(self, space):
     from pypy.module._rawffi.interp_array import ARRAY_OF_PTRS
     array = ARRAY_OF_PTRS.allocate(space, 1)
     array.setitem(space, 0, self.getbuffer(space))
     if tracker.DO_TRACING:
         # XXX this is needed, because functions tend to live forever
         #     hence our testing is not performing that well
         del tracker.alloced[rffi.cast(lltype.Signed, array.ll_buffer)]
     return array
Exemplo n.º 2
0
 def byptr(self, space):
     from pypy.module._rawffi.interp_array import ARRAY_OF_PTRS
     array = ARRAY_OF_PTRS.allocate(space, 1)
     array.setitem(space, 0, self)
     return array