netcdf-c/oc/ocdata.h

29 lines
744 B
C
Raw Normal View History

2010-06-03 21:24:43 +08:00
/* Copyright 2009, UCAR/Unidata and OPeNDAP, Inc.
See the COPYRIGHT file for more information. */
#ifndef OCDATA_H
#define OCDATA_H
typedef struct OCdimcounter {
int rank;
size_t index[OC_MAX_DIMS];
size_t size[OC_MAX_DIMS];
} OCdimcounter;
extern const char StartOfSequence;
extern const char EndOfSequence;
/*Forward */
struct OCcontent;
2010-06-03 21:24:43 +08:00
/* Skip arbitrary dimensioned instance; Handles dimensioning.*/
extern int ocskip(OCnode* node, XXDR* xdrs);
2010-06-03 21:24:43 +08:00
extern int occountrecords(OCnode* node, XXDR* xdrs, size_t* nrecordsp);
2010-06-03 21:24:43 +08:00
extern int ocxdrread(struct OCcontent*, XXDR*, char* memory, size_t, ocindex_t index, ocindex_t count);
2010-06-03 21:24:43 +08:00
extern int ocskipinstance(OCnode* node, XXDR* xdrs, int state, int* tagp);
2010-06-03 21:24:43 +08:00
#endif /*OCDATA_H*/