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