コード例 #1
0
ファイル: interp_rawffi.py プロジェクト: abhinavthomas/pypy
 def byptr(self, space):
     from pypy.module._rawffi.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 space.wrap(array)
コード例 #2
0
ファイル: interp_rawffi.py プロジェクト: nipengadmaster/pypy
 def byptr(self, space):
     from pypy.module._rawffi.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 space.wrap(array)
コード例 #3
0
ファイル: interp_rawffi.py プロジェクト: abhinavthomas/pypy
 def byptr(self, space):
     from pypy.module._rawffi.array import ARRAY_OF_PTRS
     array = ARRAY_OF_PTRS.allocate(space, 1)
     array.setitem(space, 0, space.wrap(self))
     return space.wrap(array)
コード例 #4
0
ファイル: interp_rawffi.py プロジェクト: nipengadmaster/pypy
 def byptr(self, space):
     from pypy.module._rawffi.array import ARRAY_OF_PTRS
     array = ARRAY_OF_PTRS.allocate(space, 1)
     array.setitem(space, 0, space.wrap(self))
     return space.wrap(array)