Patent ID: 6314429
Filing Date: 2001-11-06
Classification: G06F,Y10S

Abstract:
A bi-directional conversion library for converting data structures from a first programming language into data structures of a second programming language, comprising:a) a plurality of string functions for creating new string objects in said first and second programming languages based on string parameters passed thereto from said second and first programming languages, respectively;b) a plurality of array functions for creating new array objects in said first and second programming languages based on array parameters passed thereto from said second and first programming languages, respectively;c) a plurality of object/structure functions for copying data between an object of said first programming language and a data structure of said second programming language according to predetermined indicated class descriptors and for creating new objects in said first programming language based on one of either a default constructor or a specified data structure of the second programming language according to a specified class descriptor; andd) a plurality of field accessor/mutator functions for reading and modifying individual fields of an object in said first and second programming languages, wherein said first programming language is Java.TM. and said second programming language is C, and wherein Java.TM. includes a Java.TM. Native Interface (JNI) facility, and wherein each of said functions takes a pointer to said Java.TM. Native Interface (JNI) environment has a first parameter.