Lines Matching refs:data

82 pcre2_serialized_data *data;  in pcre2_serialize_encode()  local
116 data = (pcre2_serialized_data *)bytes; in pcre2_serialize_encode()
117 data->magic = SERIALIZED_DATA_MAGIC; in pcre2_serialize_encode()
118 data->version = SERIALIZED_DATA_VERSION; in pcre2_serialize_encode()
119 data->config = SERIALIZED_DATA_CONFIG; in pcre2_serialize_encode()
120 data->number_of_codes = number_of_codes; in pcre2_serialize_encode()
166 const pcre2_serialized_data *data = (const pcre2_serialized_data *)bytes; in pcre2_serialize_decode() local
177 if (data == NULL || codes == NULL) return PCRE2_ERROR_NULL; in pcre2_serialize_decode()
179 if (data->number_of_codes <= 0) return PCRE2_ERROR_BADSERIALIZEDDATA; in pcre2_serialize_decode()
180 if (data->magic != SERIALIZED_DATA_MAGIC) return PCRE2_ERROR_BADMAGIC; in pcre2_serialize_decode()
181 if (data->version != SERIALIZED_DATA_VERSION) return PCRE2_ERROR_BADMODE; in pcre2_serialize_decode()
182 if (data->config != SERIALIZED_DATA_CONFIG) return PCRE2_ERROR_BADMODE; in pcre2_serialize_decode()
184 if (number_of_codes > data->number_of_codes) in pcre2_serialize_decode()
185 number_of_codes = data->number_of_codes; in pcre2_serialize_decode()
261 const pcre2_serialized_data *data = (const pcre2_serialized_data *)bytes; in pcre2_serialize_get_number_of_codes() local
263 if (data == NULL) return PCRE2_ERROR_NULL; in pcre2_serialize_get_number_of_codes()
264 if (data->magic != SERIALIZED_DATA_MAGIC) return PCRE2_ERROR_BADMAGIC; in pcre2_serialize_get_number_of_codes()
265 if (data->version != SERIALIZED_DATA_VERSION) return PCRE2_ERROR_BADMODE; in pcre2_serialize_get_number_of_codes()
266 if (data->config != SERIALIZED_DATA_CONFIG) return PCRE2_ERROR_BADMODE; in pcre2_serialize_get_number_of_codes()
268 return data->number_of_codes; in pcre2_serialize_get_number_of_codes()