摘要 |
<p>Disclosed herein are platform-and device-independent systems and methods for serializing and deserializing data. A method of serializing data stored in a data structure comprises generating a data structure descriptor representing information about a memory layout of the data structure and serializing the stored data based upon the data structure descriptor. The data structure descriptor may include a layout array, including a memory offset and a size corresponding to each member of the data structure. A method of processing serially received data for storage in a data structure comprises receiving a serial data stream, allocating memory for storing the data based upon a data structure descriptor, and deserializing the data stream based upon the data structure descriptor. The data structure descriptor may include a layout array, including a memory offset and a size corresponding to each member of the data structure.</p> |