/external/marisa-trie/tests/ |
D | trie-test.cc | 89 char key_buf[256]; in TestTrie() local 92 key_length = trie.restore(key_ids[i], key_buf, sizeof(key_buf)); in TestTrie() 97 ASSERT(keys[i] == key_buf); in TestTrie() 199 char key_buf[256]; in TestPrefixTrie() local 202 key_length = trie.restore(key_ids[i], key_buf, sizeof(key_buf)); in TestPrefixTrie() 207 ASSERT(keys[i] == key_buf); in TestPrefixTrie() 215 key_length = trie.restore(key_ids[0], key_buf, 5); in TestPrefixTrie() 219 key_length = trie.restore(key_ids[0], key_buf, 6); in TestPrefixTrie() 231 key_length = trie.restore(key_ids[i], key_buf, sizeof(key_buf)); in TestPrefixTrie() 236 ASSERT(keys[i] == key_buf); in TestPrefixTrie() [all …]
|
D | c-test.c | 95 char key_buf[16]; in TestTrie() local 138 key_ids[i], key_buf, sizeof(key_buf), &key_length) == MARISA_OK); in TestTrie() 140 ASSERT(strcmp(key_buf, keys[i]) == 0); in TestTrie()
|
/external/marisa-trie/v0_1_5/tests/ |
D | trie-test.cc | 90 char key_buf[256]; in TestTrie() local 93 key_length = trie.restore(key_ids[i], key_buf, sizeof(key_buf)); in TestTrie() 98 ASSERT(keys[i] == key_buf); in TestTrie() 201 char key_buf[256]; in TestPrefixTrie() local 204 key_length = trie.restore(key_ids[i], key_buf, sizeof(key_buf)); in TestPrefixTrie() 209 ASSERT(keys[i] == key_buf); in TestPrefixTrie() 217 key_length = trie.restore(key_ids[0], key_buf, 5); in TestPrefixTrie() 221 key_length = trie.restore(key_ids[0], key_buf, 6); in TestPrefixTrie() 233 key_length = trie.restore(key_ids[i], key_buf, sizeof(key_buf)); in TestPrefixTrie() 238 ASSERT(keys[i] == key_buf); in TestPrefixTrie() [all …]
|
D | c-test.c | 100 char key_buf[16]; in TestTrie() local 146 key_ids[i], key_buf, sizeof(key_buf), &key_length) == MARISA_ALPHA_OK); in TestTrie() 148 ASSERT(strcmp(key_buf, keys[i]) == 0); in TestTrie()
|
/external/marisa-trie/lib/marisa/ |
D | trie-search.cc | 57 std::size_t Trie::restore(UInt32 key_id, char *key_buf, in restore() argument 61 MARISA_THROW_IF((key_buf == NULL) && (key_buf_size != 0), in restore() 63 return restore_(key_id, key_buf, key_buf_size); in restore() 295 std::size_t Trie::restore_(UInt32 key_id, char *key_buf, in restore_() argument 303 trie_->trie_restore(get_link(node), key_buf, key_buf_size, pos); in restore_() 305 tail_restore(node, key_buf, key_buf_size, pos); in restore_() 308 std::reverse(key_buf + prev_pos, key_buf + pos); in restore_() 312 key_buf[pos] = labels_[node]; in restore_() 319 key_buf[pos] = '\0'; in restore_() 320 std::reverse(key_buf, key_buf + pos); in restore_() [all …]
|
D | trie.h | 61 std::size_t restore(UInt32 key_id, char *key_buf, 235 std::size_t restore_(UInt32 key_id, char *key_buf, 237 void trie_restore(UInt32 node, char *key_buf, 239 void tail_restore(UInt32 node, char *key_buf, 340 char *key_buf, size_t key_buf_size, size_t *key_length);
|
D | trie-c.cc | 163 char *key_buf, size_t key_buf_size, size_t *key_length) { in marisa_restore() argument 169 *key_length = h->trie.restore(key_id, key_buf, key_buf_size); in marisa_restore()
|
/external/marisa-trie/v0_1_5/lib/marisa_alpha/ |
D | trie-search.cc | 57 std::size_t Trie::restore(UInt32 key_id, char *key_buf, in restore() argument 61 MARISA_ALPHA_THROW_IF((key_buf == NULL) && (key_buf_size != 0), in restore() 63 return restore_(key_id, key_buf, key_buf_size); in restore() 314 std::size_t Trie::restore_(UInt32 key_id, char *key_buf, in restore_() argument 322 trie_->trie_restore(get_link(node), key_buf, key_buf_size, pos); in restore_() 324 tail_restore(node, key_buf, key_buf_size, pos); in restore_() 327 std::reverse(key_buf + prev_pos, key_buf + pos); in restore_() 331 key_buf[pos] = labels_[node]; in restore_() 338 key_buf[pos] = '\0'; in restore_() 339 std::reverse(key_buf, key_buf + pos); in restore_() [all …]
|
D | trie.h | 61 std::size_t restore(UInt32 key_id, char *key_buf, 235 std::size_t restore_(UInt32 key_id, char *key_buf, 237 void trie_restore(UInt32 node, char *key_buf, 239 void tail_restore(UInt32 node, char *key_buf, 342 marisa_alpha_uint32 key_id, char *key_buf, size_t key_buf_size,
|
D | trie-c.cc | 183 marisa_alpha_uint32 key_id, char *key_buf, size_t key_buf_size, in marisa_alpha_restore() argument 190 *key_length = h->trie.restore(key_id, key_buf, key_buf_size); in marisa_alpha_restore()
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_sake_common.c | 265 u8 key_buf[EAP_MSK_LEN + EAP_EMSK_LEN]; in eap_sake_derive_keys() local 293 key_buf, sizeof(key_buf)); in eap_sake_derive_keys() 294 os_memcpy(msk, key_buf, EAP_MSK_LEN); in eap_sake_derive_keys() 295 os_memcpy(emsk, key_buf + EAP_MSK_LEN, EAP_EMSK_LEN); in eap_sake_derive_keys()
|
/external/vboot_reference/host/lib21/ |
D | host_key.c | 381 uint8_t *key_data, *key_buf; in vb2_public_key_read_keyb() local 406 key_buf = vb2_public_key_packed_data(key); in vb2_public_key_read_keyb() 407 memcpy(key_buf, key_data, key_size); in vb2_public_key_read_keyb() 410 if (vb2_unpack_key_data(key, key_buf, key_size)) { in vb2_public_key_read_keyb()
|
/external/wpa_supplicant_8/src/rsn_supp/ |
D | peerkey.c | 814 u8 key_buf[32], rsc[6]; in wpa_supplicant_process_stk_3_of_4() local 861 os_memcpy(key_buf, _key, 16); in wpa_supplicant_process_stk_3_of_4() 862 os_memcpy(key_buf + 16, _key + 24, 8); in wpa_supplicant_process_stk_3_of_4() 863 os_memcpy(key_buf + 24, _key + 16, 8); in wpa_supplicant_process_stk_3_of_4() 864 _key = key_buf; in wpa_supplicant_process_stk_3_of_4() 872 os_memset(key_buf, 0, sizeof(key_buf)); in wpa_supplicant_process_stk_3_of_4() 877 os_memset(key_buf, 0, sizeof(key_buf)); in wpa_supplicant_process_stk_3_of_4()
|
/external/marisa-trie/ |
D | android_diff.txt | 243 - char *key_buf, size_t key_buf_size, size_t *key_length) try { 244 + char *key_buf, size_t key_buf_size, size_t *key_length) { 250 *key_length = h->trie.restore(key_id, key_buf, key_buf_size);
|