Method and apparatus for a corba typecode data manipulator
AssigneeInternational Business Machines Corporation
InventorsDavid Yu Chang, Scott Robert Hinkelman
Life of this patent
Estimating the term…
Abstract
A method and apparatus for decomposing arbitrarily complex CORBA data types into a flat data buffer and recomposing the data type back from the buffer. CORBA TypeCode data is converted to/from stream form. A memory management function releases the memory used for the reconstructed form of the TypeCode data. An encoder interface routine receives inputted CORBA data. A two pass procedure is executed which allocates buffers and passes ownership information for the inputted CORBA data which is converted into a contiguous representation.
Claims15
A method, implemented in a computer system, for decomposing a plurality of CORBA data type code elements in an object oriented environment, comprising the steps of:
- providing said plurality of CORBA data type code elements from a caller in said object oriented environment as arbitrarily complex information;
- examining recursively each of said plurality of CORBA data type code elements within said arbitrarily complex information;
- maintaining a running total of a memory size for expressing said plurality of CORBA data type code elements in said arbitrarily complex information in a flat buffer in said object oriented environment;
- converting said plurality of CORBA data type code elements represented by said arbitrarily complex information into a contiguous representation that is opaque to said caller in said flat buffer in said object oriented environments;
- and
- passing said flat buffer to said caller and releasing said flat buffer after the conversion of said CORBA data type code elements.
An apparatus for decomposing a plurality of CORBA data type code elements in an object oriented environment, comprising:
- means for providing said plurality of CORBA data typecode elements from a caller in said object oriented environment as arbitrarily complex information;
- means for examining recursively each of said plurality of CORBA data type code elements within said arbitrarily complex information;
- means for maintaining a running total of a memory size for expressing said plurality of CORBA data type code elements in said arbitrarily complex information in a flat buffer in said object oriented environment;
- means for converting said plurality of CORBA data type code elements represented by said arbitrarily complex information into a contiguous representation that is opaque to said caller in said flat buffer in said object oriented environment;
- and
- means for passing said flat buffer to said caller and releasing said flat buffer after the conversion of said CORBA data type code elements.
A computer program product having a computer readable medium having computer program Logic recorded thereon for decomposing a plurality of CORBA data type code elements in an object oriented environment, comprising:
- computer readable means for providing said plurality of CORBA data type code elements from a caller in said object oriented environment as arbitrarily complex information;
- computer readable means for examining recursively each of said plurality of CORBA data type code elements within said arbitrarily complex information;
- computer readable means for maintaining a running total of a memory size for expressing said plurality of CORBA data type code elements in said arbitrarily complex information in a flat buffer in said object oriented environment;
- computer readable means for converting said plurality of CORBA data type code elements represented by said arbitrarily complex information into a contiguous representation in said flat buffer in said object oriented environment;
- and
- computer readable means for passing said flat buffer to said caller and releasing said flat buffer after the conversion of said CORBA data type code elements.
Dependencies are inferred from the claim text.