-
-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add funcs for getting chunk indexs of slice
- Loading branch information
1 parent
017b278
commit 6c24439
Showing
7 changed files
with
398 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/********************************************************************* | ||
Blosc - Blocked Shuffling and Compression Library | ||
Copyright (c) 2021 The Blosc Development Team <blosc@blosc.org> | ||
https://blosc.org | ||
License: BSD 3-Clause (see LICENSE.txt) | ||
See LICENSE.txt for details about copyright and rights to use. | ||
**********************************************************************/ | ||
|
||
|
||
#ifndef BLOSC_B2ND_PRIVATE_H | ||
#define BLOSC_B2ND_PRIVATE_H | ||
|
||
#include "b2nd.h" | ||
|
||
#include <stdbool.h> | ||
#include <stdlib.h> | ||
#include <stdint.h> | ||
|
||
/********************************************************************* | ||
Functions meant to be used internally. | ||
*********************************************************************/ | ||
|
||
/** | ||
* @brief Get the chunk indexes needed to get the slice. | ||
* | ||
* @param array The b2nd array. | ||
* @param start The coordinates where the slice will begin. | ||
* @param stop The coordinates where the slice will end. | ||
* @param chunks_idx The pointer to the buffer where the indexes of the chunks will be written. | ||
* | ||
* @return The number of chunks needed to get the slice. If some problem is | ||
* detected, a negative code is returned instead. | ||
*/ | ||
int b2nd_get_slice_nchunks(b2nd_array_t *array, const int64_t *start, const int64_t *stop, int64_t **chunks_idx); | ||
|
||
#endif /* BLOSC_B2ND_PRIVATE_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/********************************************************************* | ||
Blosc - Blocked Shuffling and Compression Library | ||
Copyright (c) 2021 The Blosc Development Team <blosc@blosc.org> | ||
https://blosc.org | ||
License: BSD 3-Clause (see LICENSE.txt) | ||
See LICENSE.txt for details about copyright and rights to use. | ||
**********************************************************************/ | ||
|
||
|
||
#ifndef BLOSC_SCHUNK_PRIVATE_H | ||
#define BLOSC_SCHUNK_PRIVATE_H | ||
|
||
#include "b2nd.h" | ||
|
||
#include <stdbool.h> | ||
#include <stdlib.h> | ||
#include <stdint.h> | ||
|
||
/********************************************************************* | ||
Functions meant to be used internally. | ||
*********************************************************************/ | ||
|
||
/** | ||
* @brief Get the chunk indexes needed to get the slice. | ||
* | ||
* @param schunk The super-chunk. | ||
* @param start Index (0-based) where the slice begins. | ||
* @param stop The first index (0-based) that is not in the selected slice. | ||
* @param chunks_idx The pointer to the buffer where the indexes will be written. | ||
* | ||
* | ||
* @return The number of chunks needed to get the slice. If some problem is | ||
* detected, a negative code is returned instead. | ||
*/ | ||
int schunk_get_slice_nchunks(blosc2_schunk *schunk, int64_t start, int64_t stop, int64_t **chunks_idx); | ||
#endif /* BLOSC_SCHUNK_PRIVATE_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.