TheAiCollectiveART commited on
Commit
2accd6b
·
verified ·
1 Parent(s): d72954f

Upload missing root file: cuneiform_u_v3_wrapper.c

Browse files
Files changed (1) hide show
  1. cuneiform_u_v3_wrapper.c +19 -0
cuneiform_u_v3_wrapper.c ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #ifdef _WIN32
2
+ #define EXPORT __declspec(dllexport)
3
+ #else
4
+ #define EXPORT
5
+ #endif
6
+
7
+ #include "../cuneiform_u_v3.h"
8
+
9
+ EXPORT int cuneiform_u_v3_encode_dll(const Concept6D* concepts, uint32_t num_concepts,
10
+ uint8_t* out_buffer, uint32_t out_max_bytes,
11
+ uint32_t alpha, uint32_t weight) {
12
+ return cuneiform_u_v3_encode(concepts, num_concepts, out_buffer, out_max_bytes, alpha, weight);
13
+ }
14
+
15
+ EXPORT int cuneiform_u_v3_decode_dll(const uint8_t* in_buffer, uint32_t in_bytes,
16
+ Concept6D* out_concepts, uint32_t num_concepts,
17
+ uint32_t alpha, uint32_t weight) {
18
+ return cuneiform_u_v3_decode(in_buffer, in_bytes, out_concepts, num_concepts, alpha, weight);
19
+ }