-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzarrs.h
More file actions
624 lines (566 loc) · 20.8 KB
/
Copy pathzarrs.h
File metadata and controls
624 lines (566 loc) · 20.8 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
#pragma once
/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdlib.h>
#undef NDEBUG
#ifdef __cplusplus
#include <cassert>
#else // __cplusplus
#include <assert.h>
#endif // __cplusplus
#define zarrs_assert(expr) assert(ZARRS_SUCCESS == expr)
enum ZarrsResult
#ifdef __cplusplus
: int32_t
#endif // __cplusplus
{
ZARRS_SUCCESS = 0,
ZARRS_ERROR_NULL_PTR = -1,
ZARRS_ERROR_STORAGE = -2,
ZARRS_ERROR_ARRAY = -3,
ZARRS_ERROR_BUFFER_LENGTH = -4,
ZARRS_ERROR_INVALID_INDICES = -5,
ZARRS_ERROR_NODE_PATH = -6,
ZARRS_ERROR_STORE_PREFIX = -7,
ZARRS_ERROR_INVALID_METADATA = -8,
ZARRS_ERROR_STORAGE_CAPABILITY = -9,
ZARRS_ERROR_UNKNOWN_CHUNK_GRID_SHAPE = -10,
ZARRS_ERROR_UNKNOWN_INTERSECTING_CHUNKS = -11,
ZARRS_ERROR_UNSUPPORTED_DATA_TYPE = -12,
ZARRS_ERROR_GROUP = -13,
ZARRS_ERROR_INCOMPATIBLE_DIMENSIONALITY = -14,
};
#ifndef __cplusplus
typedef int32_t ZarrsResult;
#endif // __cplusplus
/**
* A zarrs data type.
*/
enum ZarrsDataType
#ifdef __cplusplus
: int32_t
#endif // __cplusplus
{
ZARRS_UNDEFINED = -1,
ZARRS_BOOL = 0,
ZARRS_INT8 = 1,
ZARRS_INT16 = 2,
ZARRS_INT32 = 3,
ZARRS_INT64 = 4,
ZARRS_UINT8 = 5,
ZARRS_UINT16 = 6,
ZARRS_UINT32 = 7,
ZARRS_UINT64 = 8,
ZARRS_FLOAT16 = 9,
ZARRS_FLOAT32 = 10,
ZARRS_FLOAT64 = 11,
ZARRS_COMPLEX64 = 12,
ZARRS_COMPLEX128 = 13,
ZARRS_RAW_BITS = 14,
ZARRS_BFLOAT16 = 15,
};
#ifndef __cplusplus
typedef int32_t ZarrsDataType;
#endif // __cplusplus
typedef struct ZarrsArray_T ZarrsArray_T;
typedef struct ZarrsGroup_T ZarrsGroup_T;
typedef struct ZarrsShardIndexCache_T ZarrsShardIndexCache_T;
typedef struct ZarrsStorage_T ZarrsStorage_T;
/**
* An opaque handle to a zarr array.
*/
typedef struct ZarrsArray_T *ZarrsArray;
/**
* An opaque handle to a zarrs [`ArrayShardedReadableExtCache`].
*/
typedef struct ZarrsShardIndexCache_T *ZarrsShardIndexCache;
/**
* An opaque handle to a zarr store or storage transformer.
*/
typedef struct ZarrsStorage_T *ZarrsStorage;
/**
* An opaque handle to a zarr group.
*/
typedef struct ZarrsGroup_T *ZarrsGroup;
#ifdef __cplusplus
extern "C" {
#endif // __cplusplus
/**
* Get the array attributes as a JSON string.
*
* The string must be freed with `zarrsFreeString`.
*
* # Safety
* `array` must be a valid `ZarrsArray` handle.
*/
ZarrsResult zarrsArrayGetAttributes(ZarrsArray array, bool pretty, char **pAttributesString);
/**
* Get the array attributes as a JSON string.
*
* The string must be freed with `zarrsFreeString`.
*
* # Safety
* `array` must be a valid `ZarrsArray` handle.
*/
ZarrsResult zarrsArrayGetAttributesString(ZarrsArray array, bool pretty, char **pAttributesString);
/**
* Return the number of chunks in the chunk grid.
*
* # Errors
* - Returns `ZarrsResult::ZARRS_ERROR_NULL_PTR` if `array` is a null pointer.
* - Returns `ZarrsResult::ZARRS_ERROR_INCOMPATIBLE_DIMENSIONALITY` if `dimensionality` does not match the array dimensionality.
*
* # Safety
* If not null, `array` must be a valid `ZarrsArray` handle.
* `dimensionality` must match the dimensionality of the array and the length of the array pointed to by `pChunkGridShape`.
*/
ZarrsResult zarrsArrayGetChunkGridShape(ZarrsArray array,
size_t dimensionality,
uint64_t *pChunkGridShape);
/**
* Get the origin of a chunk.
*
* `pChunkIndices` is a pointer to an array of length `dimensionality` holding the chunk indices.
*
* # Safety
* `array` must be a valid `ZarrsArray` handle.
* `dimensionality` must match the dimensionality of the array and the length of the array pointed to by `pChunkIndices` and `pChunkOrigin`.
*/
ZarrsResult zarrsArrayGetChunkOrigin(ZarrsArray array,
size_t dimensionality,
const uint64_t *pChunkIndices,
uint64_t *pChunkOrigin);
/**
* Get the shape of a chunk.
*
* `pChunkIndices` is a pointer to an array of length `dimensionality` holding the chunk indices.
*
* # Safety
* `array` must be a valid `ZarrsArray` handle.
* `dimensionality` must match the dimensionality of the array and the length of the array pointed to by `pChunkIndices` and `pChunkShape`.
*/
ZarrsResult zarrsArrayGetChunkShape(ZarrsArray array,
size_t dimensionality,
const uint64_t *pChunkIndices,
uint64_t *pChunkShape);
/**
* Get the size of a chunk in bytes.
*
* `pChunkIndices` is a pointer to an array of length `dimensionality` holding the chunk indices.
*
* # Safety
* `array` must be a valid `ZarrsArray` handle.
* `dimensionality` must match the dimensionality of the array and the length of the array pointed to by `pChunkIndices`.
*/
ZarrsResult zarrsArrayGetChunkSize(ZarrsArray array,
size_t dimensionality,
const uint64_t *pChunkIndices,
size_t *chunkSize);
/**
* Return the chunks indicating the chunks intersecting `array_subset`.
*
* # Errors
* - Returns `ZarrsResult::ZARRS_ERROR_NULL_PTR` if `array` is a null pointer.
* - Returns `ZarrsResult::ZARRS_ERROR_INCOMPATIBLE_DIMENSIONALITY` if `dimensionality` does not match the array dimensionality.
* - Returns `ZarrsResult::ZARRS_ERROR_UNKNOWN_INTERSECTING_CHUNKS` if the intersecting chunks cannot be determined.
*
* # Safety
* If not null, `array` must be a valid `ZarrsArray` handle.
* `dimensionality` must match the dimensionality of the array and the length of the arrays pointed to by `pSubsetStart`, `pSubsetShape`, `pChunksStart`, and `pChunksShape`.
*/
ZarrsResult zarrsArrayGetChunksInSubset(ZarrsArray array,
size_t dimensionality,
const uint64_t *pSubsetStart,
const uint64_t *pSubsetShape,
uint64_t *pChunksStart,
uint64_t *pChunksShape);
/**
* Returns the data type of the array.
*
* # Errors
* Returns `ZarrsResult::ZARRS_ERROR_NULL_PTR` if `array` is a null pointer.
*
* # Safety
* If not null, `array` must be a valid `ZarrsArray` handle.
*/
ZarrsResult zarrsArrayGetDataType(ZarrsArray array, ZarrsDataType *pDataType);
/**
* Returns the dimensionality of the array.
*
* # Errors
* Returns `ZarrsResult::ZARRS_ERROR_NULL_PTR` if `array` is a null pointer.
*
* # Safety
* If not null, `array` must be a valid `ZarrsArray` handle.
*/
ZarrsResult zarrsArrayGetDimensionality(ZarrsArray array, size_t *dimensionality);
/**
* Get the array metadata as a JSON string.
*
* The string must be freed with `zarrsFreeString`.
*
* # Safety
* `array` must be a valid `ZarrsArray` handle.
*/
ZarrsResult zarrsArrayGetMetadataString(ZarrsArray array, bool pretty, char **pMetadataString);
/**
* Returns the shape of the array.
*
* # Errors
* - Returns `ZarrsResult::ZARRS_ERROR_NULL_PTR` if `array` is a null pointer.
* - Returns `ZarrsResult::ZARRS_ERROR_INCOMPATIBLE_DIMENSIONALITY` if `dimensionality` does not match the array dimensionality.
*
* # Safety
* If not null, `array` must be a valid `ZarrsArray` handle.
* `dimensionality` must match the dimensionality of the array and the length of the array pointed to by `pShape`.
*/
ZarrsResult zarrsArrayGetShape(ZarrsArray array,
size_t dimensionality,
uint64_t *pShape);
/**
* Get the shape of the inner chunk grid of a sharded array.
*
* If the array is not sharded, the contents of `pSubChunkGridShape` will equal the standard chunk grid shape.
*
* # Errors
* - Returns `ZarrsResult::ZARRS_ERROR_NULL_PTR` if `array` is a null pointer.
* - Returns `ZarrsResult::ZARRS_ERROR_INCOMPATIBLE_DIMENSIONALITY` if `dimensionality` does not match the array dimensionality.
*
* # Safety
* `array` must be a valid `ZarrsArray` handle.
* `dimensionality` must match the dimensionality of the array and the length of the array pointed to by `pSubChunkGridShape`.
*/
ZarrsResult zarrsArrayGetSubChunkGridShape(ZarrsArray array,
size_t dimensionality,
uint64_t *pSubChunkGridShape);
/**
* Get the inner chunk shape for a sharded array.
*
* `pIsSharded` is set to true if the array is sharded, otherwise false.
* If the array is not sharded, the contents of `pSubChunkShape` will be undefined.
*
* # Safety
* `array` must be a valid `ZarrsArray` handle.
* `dimensionality` must match the dimensionality of the array and the length of the array pointed to by `pChunkShape`.
*/
ZarrsResult zarrsArrayGetSubChunkShape(ZarrsArray array,
size_t dimensionality,
bool *pIsSharded,
uint64_t *pSubChunkShape);
/**
* Get the size of a subset in bytes.
*
* `pSubsetShape` is a pointer to an array of length `dimensionality` holding the shape of the subset.
*
* # Safety
* `array` must be a valid `ZarrsArray` handle.
* `dimensionality` must match the dimensionality of the array and the length of the array pointed to by `pSubsetShape`.
*/
ZarrsResult zarrsArrayGetSubsetSize(ZarrsArray array,
size_t dimensionality,
const uint64_t *pSubsetShape,
size_t *subsetSize);
/**
* Retrieve a chunk from an array.
*
* `pChunkIndices` is a pointer to an array of length `dimensionality` holding the chunk indices.
* `pChunkBytes` is a pointer to an array of bytes of length `chunkBytesCount` that must match the expected size of the chunk as returned by `zarrsArrayGetChunkSize()`.
*
* # Errors
* Returns an error if the array does not have read capability.
*
* # Safety
* `array` must be a valid `ZarrsArray` handle.
* `dimensionality` must match the dimensionality of the array and the length of the array pointed to by `pChunkIndices`.
*/
ZarrsResult zarrsArrayRetrieveChunk(ZarrsArray array,
size_t dimensionality,
const uint64_t *pChunkIndices,
size_t chunkBytesCount,
uint8_t *pChunkBytes);
/**
* Retrieve an inner chunk from a sharded array (or outer chunk for an unsharded array).
*
* `pChunkIndices` is a pointer to an array of length `dimensionality` holding the chunk indices.
* `pChunkBytes` is a pointer to an array of bytes of length `chunkBytesCount` that must match the expected size of the chunk as returned by `zarrsArrayGetChunkSize()`.
*
* # Errors
* Returns an error if the array does not have read capability.
*
* # Safety
* `array` must be a valid `ZarrsArray` handle.
* `dimensionality` must match the dimensionality of the array and the length of the array pointed to by `pChunkIndices`.
*/
ZarrsResult zarrsArrayRetrieveSubChunk(ZarrsArray array,
ZarrsShardIndexCache cache,
size_t dimensionality,
const uint64_t *pChunkIndices,
size_t chunkBytesCount,
uint8_t *pChunkBytes);
/**
* Retrieve a subset from an array.
*
* `pSubsetStart` and `pSubsetShape` are pointers to arrays of length `dimensionality` holding the chunk start and shape respectively.
* `pSubsetBytes` is a pointer to an array of bytes of length `subsetBytesCount` that must match the expected size of the subset as returned by `zarrsArrayGetSubsetSize()`.
*
* # Errors
* Returns an error if the array does not have read capability.
*
* # Safety
* `array` must be a valid `ZarrsArray` handle.
* `dimensionality` must match the dimensionality of the array and the length of the arrays pointed to by `pSubsetStart` and `pSubsetShape`.
*/
ZarrsResult zarrsArrayRetrieveSubset(ZarrsArray array,
size_t dimensionality,
const uint64_t *pSubsetStart,
const uint64_t *pSubsetShape,
size_t subsetBytesCount,
uint8_t *pSubsetBytes);
/**
* Retrieve a subset from an array (with a shard index cache).
*
* `pSubsetStart` and `pSubsetShape` are pointers to arrays of length `dimensionality` holding the chunk start and shape respectively.
* `pSubsetBytes` is a pointer to an array of bytes of length `subsetBytesCount` that must match the expected size of the subset as returned by `zarrsArrayGetSubsetSize()`.
*
* # Errors
* Returns an error if the array does not have read capability.
*
* # Safety
* `array` must be a valid `ZarrsArray` handle.
* `dimensionality` must match the dimensionality of the array and the length of the arrays pointed to by `pSubsetStart` and `pSubsetShape`.
*/
ZarrsResult zarrsArrayRetrieveSubsetSharded(ZarrsArray array,
ZarrsShardIndexCache cache,
size_t dimensionality,
const uint64_t *pSubsetStart,
const uint64_t *pSubsetShape,
size_t subsetBytesCount,
uint8_t *pSubsetBytes);
/**
* Set the array attributes from a JSON string.
*
* # Errors
* Returns `ZarrsResult::ZARRS_ERROR_INVALID_METADATA` if attributes is not a valid JSON object (map).
*
* # Safety
* `array` must be a valid `ZarrsArray` handle.
*/
ZarrsResult zarrsArraySetAttributes(ZarrsArray array,
const char* attributes);
/**
* Store a chunk.
*
* `pChunkIndices` is a pointer to an array of length `dimensionality` holding the chunk indices.
* `pChunkBytes` is a pointer to an array of bytes of length `chunkBytesCount` that must match the expected size of the chunk as returned by `zarrsArrayGetChunkSize()`.
*
* # Errors
* Returns an error if the array does not have write capability.
*
* # Safety
* `array` must be a valid `ZarrsArray` handle.
* `dimensionality` must match the dimensionality of the array and the length of the array pointed to by `pChunkIndices`.
*/
ZarrsResult zarrsArrayStoreChunk(ZarrsArray array,
size_t dimensionality,
const uint64_t *pChunkIndices,
size_t chunkBytesCount,
const uint8_t *pChunkBytes);
/**
* Store array metadata.
*
* # Errors
* Returns an error if the array does not have write capability.
*
* # Safety
* `array` must be a valid `ZarrsArray` handle.
*/
ZarrsResult zarrsArrayStoreMetadata(ZarrsArray array);
/**
* Store an array subset.
*
* `pSubsetStart` and `pSubsetShape` are pointers to arrays of length `dimensionality` holding the chunk start and shape respectively.
* `pSubsetBytes` is a pointer to an array of bytes of length `subsetBytesCount` that must match the expected size of the subset as returned by `zarrsArrayGetSubsetSize()`.
*
* # Errors
* Returns an error if the array does not have read/write capability.
*
* # Safety
* `array` must be a valid `ZarrsArray` handle.
* `dimensionality` must match the dimensionality of the array and the length of the arrays pointed to by `pSubsetStart` and `pSubsetShape`.
*/
ZarrsResult zarrsArrayStoreSubset(ZarrsArray array,
size_t dimensionality,
const uint64_t *pSubsetStart,
const uint64_t *pSubsetShape,
size_t subsetBytesCount,
const uint8_t *pSubsetBytes);
/**
* Create a handle to a new array (read/write capability).
*
* `metadata` is expected to be a JSON string representing a zarr V3 array `zarr.json`.
* `pArray` is a pointer to a handle in which the created `ZarrsArray` is returned.
*
* # Safety
* `pArray` must be a valid pointer to a `ZarrsArray` handle.
*/
ZarrsResult zarrsCreateArrayRW(ZarrsStorage storage,
const char* path,
const char* metadata,
ZarrsArray *pArray);
/**
* Create a handle to a new group (read/write capability).
*
* `metadata` is expected to be a JSON string representing a zarr V3 group `zarr.json`.
* `pGroup` is a pointer to a handle in which the created `ZarrsGroup` is returned.
*
* # Safety
* `pGroup` must be a valid pointer to a `ZarrsGroup` handle.
*/
ZarrsResult zarrsCreateGroupRW(ZarrsStorage storage,
const char* path,
const char* metadata,
ZarrsGroup *pGroup);
/**
* Create a handle to a new shard index cache.
*
* # Errors
* Returns an error if the array does not have read capability.
*
* # Safety
* `array` must be a valid `ZarrsArray` handle.
*/
ZarrsResult zarrsCreateShardIndexCache(ZarrsArray array, ZarrsShardIndexCache *pShardIndexCache);
/**
* Create a storage handle to a filesystem store.
*
* `pStorage` is a pointer to a handle in which the created `ZarrsStorage` is returned.
*
* # Safety
* `pStorage` must be a valid pointer to a `ZarrsStorage` handle.
*/
ZarrsResult zarrsCreateStorageFilesystem(const char* path, ZarrsStorage *pStorage);
/**
* Destroy array.
*
* # Errors
* Returns `ZarrsResult::ZARRS_ERROR_NULL_PTR` if `array` is a null pointer.
*
* # Safety
* If not null, `array` must be a valid `ZarrsArray` handle.
*/
ZarrsResult zarrsDestroyArray(ZarrsArray array);
/**
* Destroy group.
*
* # Errors
* Returns `ZarrsResult::ZARRS_ERROR_NULL_PTR` if `group` is a null pointer.
*
* # Safety
* If not null, `group` must be a valid `ZarrsGroup` handle.
*/
ZarrsResult zarrsDestroyGroup(ZarrsGroup group);
/**
* Destroy a shard index cache.
*
* # Errors
* Returns `ZarrsResult::ZARRS_ERROR_NULL_PTR` if `shardIndexCache` is a null pointer.
*
* # Safety
* If not null, `shardIndexCache` must be a valid `ZarrsShardIndexCache` handle.
*/
ZarrsResult zarrsDestroyShardIndexCache(ZarrsShardIndexCache shardIndexCache);
/**
* Destroy storage.
*
* # Errors
* Returns `ZarrsResult::ZARRS_ERROR_NULL_PTR` if `storage` is a null pointer.
*
* # Safety
* If not null, `storage` must be a valid storage device created with a `zarrsStorage` function.
*/
ZarrsResult zarrsDestroyStorage(ZarrsStorage storage);
/**
* Free a string created by zarrs.
*
* # Safety
* `array` must be a valid string created by zarrs.
*/
ZarrsResult zarrsFreeString(char *string);
/**
* Get the group attributes as a JSON string.
*
* The string must be freed with `zarrsFreeString`.
*
* # Safety
* `group` must be a valid `ZarrsGroup` handle.
*/
ZarrsResult zarrsGroupGetAttributes(ZarrsGroup group, bool pretty, char **pAttributesString);
/**
* Set the group attributes from a JSON string.
*
* # Errors
* Returns `ZarrsResult::ZARRS_ERROR_INVALID_METADATA` if attributes is not a valid JSON object (map).
*
* # Safety
* `group` must be a valid `ZarrsGroup` handle.
*/
ZarrsResult zarrsGroupSetAttributes(ZarrsGroup group,
const char* attributes);
/**
* Store group metadata.
*
* # Errors
* Returns an error if the group does not have write capability.
*
* # Safety
* `group` must be a valid `ZarrsGroup` handle.
*/
ZarrsResult zarrsGroupStoreMetadata(ZarrsGroup group);
/**
* Get the last error string.
*
* The string must be freed with `zarrsFreeString`.
*/
char *zarrsLastError(void);
/**
* Create a handle to an existing array (read/write capability).
*
* `pArray` is a pointer to a handle in which the created `ZarrsArray` is returned.
*
* # Safety
* `pArray` must be a valid pointer to a `ZarrsArray` handle.
*/
ZarrsResult zarrsOpenArrayRW(ZarrsStorage storage, const char* path, ZarrsArray *pArray);
/**
* Create a handle to an existing group (read/write capability).
*
* `pGroup` is a pointer to a handle in which the created `ZarrsGroup` is returned.
*
* # Safety
* `pGroup` must be a valid pointer to a `ZarrsGroup` handle.
*/
ZarrsResult zarrsOpenGroupRW(ZarrsStorage storage, const char* path, ZarrsGroup *pGroup);
/**
* Get the zarrs version.
*
* A u32 representation of the version encoded as `(zarrsVersionMajor() << 22) | (zarrsVersionMinor() << 12) | zarrsVersionPatch()`.
*/
uint32_t zarrsVersion(void);
/**
* Get the zarrs major version.
*/
uint32_t zarrsVersionMajor(void);
/**
* Get the zarrs minor version.
*/
uint32_t zarrsVersionMinor(void);
/**
* Get the zarrs patch version.
*/
uint32_t zarrsVersionPatch(void);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus