Searched refs:fitsBuffer (Results 1 – 1 of 1) sorted by relevance
/system/gatekeeper/ |
D | gatekeeper_messages.cpp | 33 static inline bool fitsBuffer(const uint8_t* begin, const uint8_t* end, uint32_t field_size) { in fitsBuffer() function 56 if (!fitsBuffer(*buffer, end, sizeof(uint32_t))) return ERROR_INVALID; in read_from_buffer() 68 if (!fitsBuffer(*buffer, end, length)) return ERROR_INVALID; in read_from_buffer() 96 if (!fitsBuffer(buffer, end, GetSerializedSize())) { in Serialize() 101 if (!fitsBuffer(buffer, end, sizeof(serial_header_t))) return 0; in Serialize() 107 if (!fitsBuffer(buffer, end, sizeof(retry_timeout))) return 0; in Serialize() 112 if (!fitsBuffer(buffer, end, serialized_size)) return 0; in Serialize() 120 if (!fitsBuffer(payload, end, sizeof(serial_header_t))) return ERROR_INVALID; in Deserialize() 130 if (!fitsBuffer(payload, end, sizeof(retry_timeout))) { in Deserialize() 171 if (!fitsBuffer(payload, end, sizeof(challenge))) return ERROR_INVALID; in nonErrorDeserialize() [all …]
|