General data type acquisition method in virtual machine, storage medium, equipment and system

A general-purpose data and acquisition method technology, applied in the field of data processing, can solve problems such as difficult interface maintenance, achieve the effect of reducing maintenance workload and reducing the number of writing

Pending Publication Date: 2022-04-15
武汉斗鱼鱼乐网络科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] For the above situation, the current common solution is to design an interface separately for each situation to adapt to different types of data, resulting in the formation of mul

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
  • General data type acquisition method in virtual machine, storage medium, equipment and system
  • General data type acquisition method in virtual machine, storage medium, equipment and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] The embodiment of the present invention provides a general data type acquisition method in a virtual machine, by registering an interface at the C++ layer based on the interface registration mode provided by the virtual machine, so that all data types can be adapted through one interface, thereby realizing the C++ layer and virtual Inter-machine data interaction reduces the number of interfaces written, thereby avoiding the need to write multiple interfaces to adapt the data interaction between the C++ layer and the virtual machine, effectively reducing the maintenance workload of the interface. Correspondingly, the embodiment of the present invention also provides a general data type acquisition system in a storage medium, an electronic device and a virtual machine.

[0048] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be...

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 discloses a general data type acquisition method in a virtual machine, a storage medium, equipment and a system, and relates to the field of data processing.The method comprises the steps that a general data storage model is created, and all types of data of a C + + layer are stored; creating an object array, and storing the type information of the data stored in the general data storage model; obtaining key value information of data stored in the general data storage model and storing the key value information in the created character string array; based on the type information of the data stored in the object array, storing the numerical value information of the data stored in the general data storage model into the object array; and performing interface registration on the C + + layer based on an interface registration mode provided by a virtual machine, wherein the virtual machine calls a registered interface to obtain key value information, type information and numerical value information of the data. According to the invention, the writing number of interfaces can be reduced, and the maintenance workload of the interfaces is effectively reduced.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a method for acquiring general data types in a virtual machine, a storage medium, a device and a system. Background technique [0002] In some cases, the result data calculated in the c++ layer needs to be sent to the virtual machine. For example, the calculation or encryption process of the data is executed in the c++ layer, and the result data obtained by the execution needs to be sent to the virtual machine for use. And these result data may have different types, it may be a string type, an integer type, or a floating point type, or it may contain multiple types of result data at the same time, and each result data The types are all different. [0003] For the above situation, the current common solution is to design an interface separately for each situation to adapt to different types of data, resulting in the formation of multiple interfaces with different return data, makin...

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
IPC IPC(8): G06F8/36G06F8/30G06F9/455G06F9/448
Inventor 周志刚
Owner 武汉斗鱼鱼乐网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products