Lines Matching defs:header
83 serial_header_t *header = reinterpret_cast<serial_header_t *>(buffer);
86 header->error = error;
87 header->user_id = user_id;
88 bytes_written += sizeof(*header);
96 header->error = error;
97 header->user_id = user_id;
98 nonErrorSerialize(buffer + sizeof(*header));
99 bytes_written += sizeof(*header) + nonErrorSerializedSize();
107 const serial_header_t *header = reinterpret_cast<const serial_header_t *>(payload);
108 if (header->error == ERROR_NONE) {
110 user_id = header->user_id;
111 error = nonErrorDeserialize(payload + sizeof(*header), end);
113 error = static_cast<gatekeeper_error_t>(header->error);
114 user_id = header->user_id;