mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-09 08:11:38 +08:00
eb3d9eb0c9
Primary changes: * Add an improved cache system to speed up performance. * Fix NCZarr to properly handle scalar variables. Misc. Related Changes: * Added unit tests for extendible hash and for the generic cache. * Add config parameter to set size of the NCZarr cache. * Add initial performance tests but leave them unused. * Add CRC64 support. * Move location of ncdumpchunks utility from /ncgen to /ncdump. * Refactor auth support. Misc. Unrelated Changes: * More cleanup of the S3 support * Add support for S3 authentication in .rc files: HTTP.S3.ACCESSID and HTTP.S3.SECRETKEY. * Remove the hashkey from the struct OBJHDR since it is never used.
46 lines
1.6 KiB
C
46 lines
1.6 KiB
C
/*********************************************************************
|
|
* Copyright 2018, UCAR/Unidata
|
|
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
|
|
*********************************************************************/
|
|
|
|
#ifndef ZODOM_H
|
|
#define ZODOM_H
|
|
|
|
struct NCZSlice;
|
|
|
|
typedef struct NCZOdometer {
|
|
int rank; /*rank */
|
|
size64_t* start;
|
|
size64_t* stop; /* start + (count*stride) */
|
|
size64_t* stride;
|
|
size64_t* max; /* full dimension length */
|
|
size64_t* index; /* current value of the odometer*/
|
|
struct NCZOprop {
|
|
int stride1; /* all strides == 1 */
|
|
int start0; /* all starts == 0 */
|
|
int optimized; /* stride[rank-1]==1 && start[rank-1]==0 */
|
|
} properties;
|
|
} NCZOdometer;
|
|
|
|
/**************************************************/
|
|
/* From zodom.c */
|
|
extern NCZOdometer* nczodom_new(int rank, const size64_t*, const size64_t*, const size64_t*, const size64_t*);
|
|
extern NCZOdometer* nczodom_fromslices(int rank, const struct NCZSlice* slices);
|
|
extern int nczodom_more(const NCZOdometer*);
|
|
extern void nczodom_next(NCZOdometer*);
|
|
extern size64_t* nczodom_indices(const NCZOdometer*);
|
|
extern size64_t nczodom_offset(const NCZOdometer*);
|
|
extern void nczodom_reset(NCZOdometer* odom);
|
|
extern void nczodom_free(NCZOdometer*);
|
|
extern size64_t nczodom_avail(const NCZOdometer*);
|
|
extern size64_t nczodom_laststride(const NCZOdometer* odom);
|
|
extern size64_t nczodom_lastlen(const NCZOdometer* odom);
|
|
|
|
extern void nczodom_optimize(NCZOdometer*);
|
|
#if 0
|
|
extern void nczodom_incr(NCZOdometer*,size64_t);
|
|
extern void nczodom_reducerank(NCZOdometer* odom);
|
|
#endif
|
|
|
|
#endif /*ZODOM_H*/
|