Home
last modified time | relevance | path

Searched refs:serial_header_t (Results 1 – 1 of 1) sorted by relevance

/system/gatekeeper/
Dgatekeeper_messages.cpp30 struct __attribute__((__packed__)) serial_header_t { struct
68 uint32_t size = sizeof(serial_header_t) + nonErrorSerializedSize(); in GetSerializedSize()
71 uint32_t size = sizeof(serial_header_t); in GetSerializedSize()
85 serial_header_t *header = reinterpret_cast<serial_header_t *>(buffer); in Serialize()
87 if (buffer + sizeof(serial_header_t) > end) return 0; in Serialize()
92 memcpy(buffer + sizeof(serial_header_t), &retry_timeout, sizeof(retry_timeout)); in Serialize()
96 if (buffer + sizeof(serial_header_t) + nonErrorSerializedSize() > end) in Serialize()
109 const serial_header_t *header = reinterpret_cast<const serial_header_t *>(payload); in Deserialize()
118 if (payload + sizeof(serial_header_t) < end) { in Deserialize()
119 memcpy(&retry_timeout, payload + sizeof(serial_header_t), sizeof(retry_timeout)); in Deserialize()