Patents
Literature
Patsnap Eureka AI that helps you search prior art, draft patents, and assess FTO risks, powered by patent and scientific literature data.

4 results about "Return type" patented technology

In computer programming, the return type (or result type) defines and constrains the data type of the value returned from a subroutine or method. In many programming languages (especially statically-typed programming languages such as C, C++, Java) the return type must be explicitly specified when declaring a function.

Software toolkit development method and device, computer equipment and storage medium

The invention discloses a software toolkit development method and device, computer equipment and a storage medium, and belongs to the technical field of software development. The method comprises the following steps: firstly, analyzing information in an interface document, including function description, a request mode, a path, parameters and a return type; then, identifying and defining a data transmission object class matched with the interface, and generating a field of the object class according to the interface declaration; then, the fields of the data transmission object class are constructed into a request message through the annotation and reflection technology; and finally, integrating the interface declaration and the request message by integrating a preset code template engine, and generating a standardized development kit code. The invention further relates to the technical field of block chains, and the interface document is stored on a block chain network node. According to the method, the consistency and normalization of software toolkit development are realized, the development efficiency is improved, and meanwhile, the workload and error rate of manual coding are reduced.
Owner:PING AN BANK CO LTD

A method and apparatus for returning streaming results based on the MyBatis framework

This invention discloses a method and apparatus for returning streaming results based on the MyBatis framework, applied in the field of computer technology. The method includes: if the current SQL operation is a query operation, checking whether the return type of the Mapper interface method in the MyBatis framework is a streaming type from the Java standard library; if so, obtaining a cursor object, converting the cursor object to a stream object using the Java standard library, and registering a close callback function on the stream object. This invention extends the MyBatis framework to enable streaming result return functionality, reducing development workload while ensuring performance consistent with the native MyBatis framework; it does not modify the core MyBatis code implementation, avoiding risks and ensuring existing functionality remains unaffected; and by binding the cursor object's close function to the stream object, users do not need to manually manage resources, preventing resource leaks.
Owner:湖南长银五八消费金融股份有限公司

A static type inference method and system for Python external functions

The present invention relates to a static type inference method and system for Python external functions, and the method comprises: step S1: language separation of Python / C multi-language projects; for the C language file obtained after separation, identifying the external function declaration therein, analyzing the parameter type conversion and return type conversion of the external function implementation corresponding to each external function declaration; step S2: performing type inference according to the external function declaration, parameter type conversion and return type conversion, and simultaneously checking the consistency of the external function declaration without parameters for the external function declaration and the corresponding external function implementation. The method provided by the present invention can infer the type signature of the external function, enhance the existing Python static type inference tool, enable it to analyze the external function call in the program, and check the vulnerability of the inconsistency between the external function declaration and its implementation.
Owner:UNIV OF SCI & TECH OF CHINA

A dynamic link library reflection method and system based on a C language preprocessor

The application discloses a dynamic link library reflection method based on a C language preprocessor, and comprises the following steps: S1, acquiring the file name of a dynamic link library to be agented and a function list to be agented, wherein the function list comprises the function name, return type and parameter type of each function; S2, constructing a registerer by using the macro definition of the C language, wherein the input of the registerer is the file name of the dynamic link library, the function name to be agented, the return type and the parameter type; S3, generating an agent function by using the registerer in the preprocessing process of the compiler at the compiling stage; S4, registering the function to be agented in the source code by using the registerer in step S3; and S5, calling the function to be agented in S1 in the business, and compiling and running the software together with the registration code in step S4. The application solves the compatibility problem caused by using different version library modules or using the same library module in different versions of the same product.
Owner:SOUTH SURVEYING & MAPPING INSTR