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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/*
* registry.c — algorithm vtable lookup.
*
* Each algorithm exports a `cu_<algo>_vtbl` symbol from its own .c file,
* conditionally compiled based on the INCLUDE_<ALGO> CMake options. This
* file routes a cu_algorithm_t enum value to the right vtable.
*
* A switch statement (rather than an array indexed by enum value)
* handles holes from disabled algorithms cleanly: unavailable algorithms
* simply have no case and the default returns NULL.
*/
extern const cu_algorithm_vtbl_t cu_zstd_vtbl;
extern const cu_algorithm_vtbl_t cu_brotli_vtbl;
extern const cu_algorithm_vtbl_t cu_zlib_vtbl;
extern const cu_algorithm_vtbl_t cu_bz2_vtbl;
extern const cu_algorithm_vtbl_t cu_lz4_vtbl;
extern const cu_algorithm_vtbl_t cu_xz_vtbl;
extern const cu_algorithm_vtbl_t cu_snappy_vtbl;
extern const cu_algorithm_vtbl_t cu_gzip_vtbl;
const cu_algorithm_vtbl_t*