Home
last modified time | relevance | path

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

/system/gatekeeper/
Dgatekeeper_messages.cpp33 static inline bool fitsBuffer(const uint8_t* begin, const uint8_t* end, uint32_t field_size) { in fitsBuffer() function
72 if (!fitsBuffer(*buffer, end, sizeof(uint32_t))) return ERROR_INVALID; in read_from_buffer()
84 if (!fitsBuffer(*buffer, end, length)) return ERROR_INVALID; in read_from_buffer()
112 if (!fitsBuffer(buffer, end, GetSerializedSize())) { in Serialize()
117 if (!fitsBuffer(buffer, end, sizeof(serial_header_t))) return 0; in Serialize()
123 if (!fitsBuffer(buffer, end, sizeof(retry_timeout))) return 0; in Serialize()
128 if (!fitsBuffer(buffer, end, serialized_size)) return 0; in Serialize()
136 if (!fitsBuffer(payload, end, sizeof(serial_header_t))) return ERROR_INVALID; in Deserialize()
146 if (!fitsBuffer(payload, end, sizeof(retry_timeout))) { in Deserialize()
187 if (!fitsBuffer(payload, end, sizeof(challenge))) return ERROR_INVALID; in nonErrorDeserialize()
[all …]