Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Data processing method and device, electronic equipment and storage medium

A data processing and subclassing technology, applied in the computer field, which can solve problems such as inability to call other functions, application running errors, inability to call target functions, etc.

Pending Publication Date: 2021-11-02
WUBA
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] This will lead to the fact that the function address of the other function cannot be obtained in the virtual function table when the other function needs to be called, and then the other function cannot be called, and, when the target function needs to be called, the address obtained in the virtual function table is It is the function address of the original function, and the target function cannot be called, which may cause the application program to run incorrectly

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data processing method and device, electronic equipment and storage medium
  • Data processing method and device, electronic equipment and storage medium
  • Data processing method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0067] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0068] refer to figure 1 , which shows a flow chart of the steps of a data processing method of the present application, which is applied to electronic devices, and the method may specifically include the following steps:

[0069] In step S101, a subclass for inheriting the base class is created in the development environment of the application program, and the base class is a class developed in the development environment.

[0070] The developer can ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides a data processing method and device, electronic equipment and a storage medium. The method comprises: obtaining rewriting function table of a subclass in an executable file of an application program, wherein the subclass inherits a base class in the executable file, and the rewriting function table comprises a function address of an original function needing to be replaced in the base class, a class name of the base class and a function address of a target function used for replacing the original function; determining a virtual function table of the base class inherited by the subclass, wherein the virtual function table comprises a function address of a function in the base class; searching the function address of the original function in the virtual function table of the base class; and replacing the function address of the original function in the virtual function table of the base class with the function address of the target function. Thus, the situation that the function address of the target function is used for replacing the function address which should not be replaced in the virtual function table is avoided, the situation of replacement errors is avoided, then the situation that a wrong function is called when the application program calls the function later is avoided, and then running errors of the application program can be avoided.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a data processing method, device, electronic equipment and storage medium. Background technique [0002] An application program includes multiple functions, and sometimes it may be necessary to replace a certain function in the application program with another function for actual needs. In this case, the function address of the certain function in the virtual function table of the application can be changed to the function address of the other function, so that the application can get the function address of the other function when calling the function based on the virtual function table. The function address of a function, and call to the other function based on the function address of the other function. [0003] Wherein, the function address of the function in the virtual function table is not indexed by the function name of the function, but is indexed by the posit...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/30G06F8/38
CPCG06F8/31G06F8/38
Inventor 邓竹立彭飞
Owner WUBA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products