Searched refs:HEADER_STRUCT (Results 1 – 2 of 2) sorted by relevance
/external/chromium_org/mojo/public/python/mojo/bindings/ |
D | serialization.py | 11 HEADER_STRUCT = struct.Struct("=II") variable 32 self.size = HEADER_STRUCT.size + main_struct.size 64 HEADER_STRUCT.pack_into(data, 0, self.size, self.version) 65 position = HEADER_STRUCT.size 78 self._GetMainStruct().pack_into(data, HEADER_STRUCT.size, *to_pack) 84 (_, version) = HEADER_STRUCT.unpack_from(data) 86 entitities = version_struct.unpack_from(data, HEADER_STRUCT.size) 88 position = HEADER_STRUCT.size
|
D | descriptor.py | 169 (size, nb_elements) = serialization.HEADER_STRUCT.unpack_from(pointed_data) 309 size = (serialization.HEADER_STRUCT.size + 312 position = len(data) + serialization.HEADER_STRUCT.size 326 serialization.HEADER_STRUCT.pack_into(data, data_end, size, len(value)) 329 data_end + serialization.HEADER_STRUCT.size, 336 buffer(data, serialization.HEADER_STRUCT.size)) 338 position = serialization.HEADER_STRUCT.size 367 serialization.HEADER_STRUCT.size, 368 size - serialization.HEADER_STRUCT.size)) 534 data.extend(bytearray(serialization.HEADER_STRUCT.size)) [all …]
|