Example #1
0
 def _push_arg(self, value, ll_args, i):
     # XXX: check the type is not translated?
     argtype = self.argtypes[i]
     c_size = intmask(argtype.c_size)
     ll_buf = lltype.malloc(rffi.CCHARP.TO, c_size, flavor='raw')
     push_arg_as_ffiptr(argtype, value, ll_buf)
     ll_args[i] = ll_buf
Example #2
0
 def _push_arg(self, value, ll_args, i):
     # XXX: check the type is not translated?
     argtype = self.argtypes[i]
     c_size = intmask(argtype.c_size)
     ll_buf = lltype.malloc(rffi.CCHARP.TO, c_size, flavor='raw')
     push_arg_as_ffiptr(argtype, value, ll_buf)
     ll_args[i] = ll_buf