Esempio n. 1
0
 def write(self, space, data, w_arg):
     arg = space.int_w(w_arg)
     misc.write_raw_unsigned_data(data, arg, self.typesize)
Esempio n. 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)
Esempio n. 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)
Esempio n. 4
0
 def write(self, data):
     misc.write_raw_unsigned_data(data, rffi.cast(rffi.CCHARP, self.heap),
                                  rffi.sizeof(clibffi.FFI_CLOSUREP))
Esempio n. 5
0
 def write(self, data):
     misc.write_raw_unsigned_data(
         data, rffi.cast(rffi.CCHARP, self.heap),
         rffi.sizeof(clibffi.FFI_CLOSUREP))
Esempio n. 6
0
 def write(self, space, data, w_arg):
     arg = space.int_w(w_arg)
     misc.write_raw_unsigned_data(data, arg, self.typesize)
Esempio n. 7
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)
Esempio n. 8
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)