示例#1
0
 def write(self, space, data, w_arg):
     arg = space.int_w(w_arg)
     misc.write_raw_unsigned_data(data, arg, self.typesize)
示例#2
0
 def write(self, space, data, w_arg):
     arg = space.str_w(w_arg)
     arg = rffi.str2charp(arg)
     arg = rffi.cast(lltype.Unsigned, arg)
     misc.write_raw_unsigned_data(data, arg, self.typesize)
示例#3
0
 def write(self, space, data, w_arg):
     w_arg = self._convert_to_NULL_if_nil(space, w_arg)
     arg = Coerce.ffi_pointer(space, w_arg)
     arg = rffi.cast(lltype.Unsigned, arg)
     misc.write_raw_unsigned_data(data, arg, self.typesize)
示例#4
0
 def write(self, data):
     misc.write_raw_unsigned_data(data, rffi.cast(rffi.CCHARP, self.heap),
                                  rffi.sizeof(clibffi.FFI_CLOSUREP))
示例#5
0
 def write(self, data):
     misc.write_raw_unsigned_data(
         data, rffi.cast(rffi.CCHARP, self.heap),
         rffi.sizeof(clibffi.FFI_CLOSUREP))
示例#6
0
文件: type.py 项目: fniephaus/topaz
 def write(self, space, data, w_arg):
     arg = space.int_w(w_arg)
     misc.write_raw_unsigned_data(data, arg, self.typesize)
示例#7
0
文件: type.py 项目: fniephaus/topaz
 def write(self, space, data, w_arg):
     w_arg = self._convert_to_NULL_if_nil(space, w_arg)
     arg = Coerce.ffi_pointer(space, w_arg)
     arg = rffi.cast(lltype.Unsigned, arg)
     misc.write_raw_unsigned_data(data, arg, self.typesize)
示例#8
0
文件: type.py 项目: fniephaus/topaz
 def write(self, space, data, w_arg):
     arg = space.str_w(w_arg)
     arg = rffi.str2charp(arg)
     arg = rffi.cast(lltype.Unsigned, arg)
     misc.write_raw_unsigned_data(data, arg, self.typesize)