ouster_clib v1.0
C library for Ouster LiDAR
Loading...
Searching...
No Matches
ouster_vec.h
1
9#ifndef OUSTER_VEC_H
10#define OUSTER_VEC_H
11
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17#define OUSTER_OFFSET(o, offset) (void *)(((uintptr_t)(o)) + ((uintptr_t)(offset)))
18
19typedef struct
20{
21 int cap;
22 int count;
23 int esize;
24 void *data;
26
27void ouster_vec_init(ouster_vec_t *v, int esize, int cap);
28
29void ouster_vec_append(ouster_vec_t *v, void const *data, int n, float factor);
30
31int test_ouster_vec();
32
33#ifdef __cplusplus
34}
35#endif
36
37#endif // OUSTER_VEC_H
38