Lines Matching defs:header
85 serial_header_t *header = reinterpret_cast<serial_header_t *>(buffer);
88 header->error = error;
89 header->user_id = user_id;
90 bytes_written += sizeof(*header);
98 header->error = error;
99 header->user_id = user_id;
100 nonErrorSerialize(buffer + sizeof(*header));
101 bytes_written += sizeof(*header) + nonErrorSerializedSize();
109 const serial_header_t *header = reinterpret_cast<const serial_header_t *>(payload);
110 if (header->error == ERROR_NONE) {
112 user_id = header->user_id;
113 error = nonErrorDeserialize(payload + sizeof(*header), end);
115 error = static_cast<gatekeeper_error_t>(header->error);
116 user_id = header->user_id;