发明名称 Methods for In-Place Access of Serialized Data
摘要 Methods and apparatus are provided for serializing data. A computing device can generate a serialization buffer (SB). The SB can specify fields storing data and corresponding offsets, with an offset referring to a location in the SB storing the corresponding field. The SB can access a designated field in the SB by determining a designated offset for the designated field, determining a starting location based on the designated offset, and accessing data at the starting location. A distinct copy of the SB can be stored on a storage device.
申请公布号 US2015293962(A1) 申请公布日期 2015.10.15
申请号 US201414253841 申请日期 2014.04.15
申请人 Google Inc. 发明人 van Oortmerssen Wouter;Froehlich Martin
分类号 G06F17/30 主分类号 G06F17/30
代理机构 代理人
主权项 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.
地址 Mountain View CA US