| 1 |
/********************************************************************* |
| 2 |
Blosc - Blocked Shuffling and Compression Library |
| 3 |
|
| 4 |
Copyright (c) 2021 Blosc Development Team <[email protected]> |
| 5 |
https://blosc.org |
| 6 |
License: BSD 3-Clause (see LICENSE.txt) |
| 7 |
|
| 8 |
See LICENSE.txt for details about copyright and rights to use. |
| 9 |
**********************************************************************/ |
| 10 |
|
| 11 |
|
| 12 |
#ifndef BLOSC_B2ND_PRIVATE_H |
| 13 |
#define BLOSC_B2ND_PRIVATE_H |
| 14 |
|
| 15 |
#include "b2nd.h" |
| 16 |
|
| 17 |
#include <stdbool.h> |
| 18 |
#include <stdlib.h> |
| 19 |
#include <stdint.h> |
| 20 |
|
| 21 |
/********************************************************************* |
| 22 |
|
| 23 |
Functions meant to be used internally. |
| 24 |
|
| 25 |
*********************************************************************/ |
| 26 |
|
| 27 |
/** |
| 28 |
* @brief Get the chunk indexes needed to get the slice. |
| 29 |
* |
| 30 |
* @param array The b2nd array. |
| 31 |
* @param start The coordinates where the slice will begin. |
| 32 |
* @param stop The coordinates where the slice will end. |
| 33 |
* @param chunks_idx The pointer to the buffer where the indexes of the chunks will be written. |
| 34 |
* |
| 35 |
* @return The number of chunks needed to get the slice. If some problem is |
| 36 |
* detected, a negative code is returned instead. |
| 37 |
*/ |
| 38 |
int b2nd_get_slice_nchunks(b2nd_array_t *array, const int64_t *start, const int64_t *stop, int64_t **chunks_idx); |
| 39 |
|
| 40 |
#endif /* BLOSC_B2ND_PRIVATE_H */ |