The invention discloses a method and device for transmitting
big data between a C language and a
Flutter, and relates to the technical field of
big data.The method for transmitting the
big data between the C language and the
Flutter comprises the steps that a structural body is declared in the C language, a class consistent with the
data type of the structural body is defined in the
Flutter, and the structural body in the C language and the class defined in the Flutter are mapped; configuring an external function interface
package in the Flutter, wherein the external function interface
package is used for enabling the Flutter application to call a native code
library written by a C language; calling a C function in the Flutter, and obtaining a pointer address returned by the function; the obtained pointer address is converted into a corresponding Pointer type in a Flutter; and converting the Pointer type into a mapping
class type defined in the Flutter, so as to obtain the representation of the C structural body in the Flutter. The problem that in the prior art, the efficiency of big
data transmission between the C language and the Flutter is low is solved, and efficient and stable data interaction and sharing are achieved.