YR_API void* yr_hash_table_lookup( YR_HASH_TABLE* table, const char* key, const char* ns) { return yr_hash_table_lookup_raw_key( table, (void*) key, strlen(key), ns); }
char* get_from_cache( YR_OBJECT* module_object, const char* ns, int64_t offset, int64_t length) { CACHE_KEY key; YR_HASH_TABLE* hash_table = (YR_HASH_TABLE*) module_object->data; key.offset = offset; key.length = length; return (char*) yr_hash_table_lookup_raw_key( hash_table, &key, sizeof(key), ns); }