summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.http.apache/META-INF/MANIFEST.MF
blob: 4f2658816859a1ba1980b565ef49357c70f7271c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name
Automatic-Module-Name: org.eclipse.jgit.http.apache
Bundle-SymbolicName: org.eclipse.jgit.http.apache
Bundle-Version: 5.4.2.201908231537-r
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-Localization: plugin
Bundle-Vendor: %Provider-Name
Bundle-ActivationPolicy: lazy
Import-Package: org.apache.http;version="[4.3.0,5.0.0)",
 org.apache.http.client;version="[4.3.0,5.0.0)",
 org.apache.http.client.config;version="[4.3.0,5.0.0)",
 org.apache.http.client.methods;version="[4.3.0,5.0.0)",
 org.apache.http.client.params;version="[4.3.0,5.0.0)",
 org.apache.http.config;version="[4.3.0,5.0.0)",
 org.apache.http.conn;version="[4.3.0,5.0.0)",
 org.apache.http.conn.params;version="[4.3.0,5.0.0)",
 org.apache.http.conn.scheme;version="[4.3.0,5.0.0)",
 org.apache.http.conn.socket;version="[4.3.0,5.0.0)",
 org.apache.http.conn.ssl;version="[4.3.0,5.0.0)",
 org.apache.http.entity;version="[4.3.0,5.0.0)",
 org.apache.http.impl.client;version="[4.3.0,5.0.0)",
 org.apache.http.impl.conn;version="[4.3.0,5.0.0)",
 org.apache.http.params;version="[4.3.0,5.0.0)",
 org.eclipse.jgit.annotations;version="[5.4.2,5.5.0)",
 org.eclipse.jgit.nls;version="[5.4.2,5.5.0)",
 org.eclipse.jgit.transport.http;version="[5.4.2,5.5.0)",
 org.eclipse.jgit.util;version="[5.4.2,5.5.0)"
Export-Package: org.eclipse.jgit.transport.http.apache;version="5.4.2";
  uses:="org.apache.http.client,
   org.eclipse.jgit.transport.http,
   org.apache.http.entity,
   org.apache.http.client.methods,
   javax.net.ssl,
   org.eclipse.jgit.util,
   org.apache.http",
 org.eclipse.jgit.transport.http.apache.internal;x-internal:=true
a once #include <cstdint> #include <cstring> // for memset #include <algorithm>// for sort/bsearch #include "config.h" #include "libutil/mem_pool.h" #include "contrib/ankerl/svector.h" namespace rspamd::symcache { /* * This structure is optimised to store ids list: * - If the first element is -1 then use dynamic part, else use static part * There is no std::variant to save space */ constexpr const auto id_capacity = 4; constexpr const auto id_sort_threshold = 32; struct id_list { ankerl::svector<std::uint32_t, id_capacity> data; id_list() = default; auto reset() { data.clear(); } /** * Returns ids from a compressed list, accepting a mutable reference for number of elements * @param nids output of the number of elements * @return */ auto get_ids(unsigned &nids) const -> const std::uint32_t * { nids = data.size(); return data.data(); } auto add_id(std::uint32_t id) -> void { data.push_back(id); /* Check sort threshold */ if (data.size() > id_sort_threshold) { std::sort(data.begin(), data.end()); } } auto set_ids(const std::uint32_t *ids, std::size_t nids) -> void { data.resize(nids); for (auto &id: data) { id = *ids++; } if (data.size() > id_sort_threshold) { std::sort(data.begin(), data.end()); } } auto check_id(unsigned int id) const -> bool { if (data.size() > id_sort_threshold) { return std::binary_search(data.begin(), data.end(), id); } return std::find(data.begin(), data.end(), id) != data.end(); } }; }// namespace rspamd::symcache #endif//RSPAMD_SYMCACHE_ID_LIST_HXX