示例#1
0
 def __init__(self, space, ctptr, length, arraysize, extra):
     assert isinstance(ctptr, W_CTypePointer)
     W_CTypePtrOrArray.__init__(self, space, arraysize, extra, 0,
                                ctptr.ctitem)
     self.length = length
     self.ctptr = ctptr
示例#2
0
 def __init__(self, space, ctptr, length, arraysize, extra):
     W_CTypePtrOrArray.__init__(self, space, arraysize, extra, 0,
                                ctptr.ctitem)
     self.length = length
     self.ctptr = ctptr
示例#3
0
文件: ctypearray.py 项目: sota/pypy
 def __init__(self, space, ctptr, length, arraysize, extra):
     assert isinstance(ctptr, W_CTypePointer)
     W_CTypePtrOrArray.__init__(self, space, arraysize, extra, 0,
                                ctptr.ctitem)
     self.length = length
     self.ctptr = ctptr
示例#4
0
 def __init__(self, space, ctptr, length, arraysize, extra):
     assert isinstance(ctptr, W_CTypePointer)
     W_CTypePtrOrArray.__init__(self, space, arraysize, extra, 0,
                                ctptr.ctitem)
     self.length = length    # -1 if no length is given, e.g. 'int[]'
     self.ctptr = ctptr