主权项 |
1. A method, comprising:
generating an object in a serialization buffer stored in a memory of a computing device, the object as stored in the serialization buffer having a serialization buffer format, wherein the serialization buffer format specifies one or more fields for storing data of the object and one or more offsets, wherein an offset of the one or more offsets corresponds to a field of the one or more fields, wherein an offset of the one or more offsets refers to a storage location in the serialization buffer storing data for the corresponding field, and wherein the serialization buffer is configured so that data is accessible for a designated field of the object stored in the serialization buffer using the computing device by at least:
determining a designated offset of the one or more offsets corresponding to the designated field,determining a starting location of the serialization buffer for storing data of the designated field, wherein the starting location is based on the designated offset, andproviding access to data for the designated field stored in the serialization buffer starting at the starting location of the serialization buffer for storing data of the designated field; and storing a copy of the serialization buffer on a storage device associated with the computing device, wherein the copy of the serialization buffer is distinct from the serialization buffer. |