ocdata.h 744 B

12345678910111213141516171819202122232425262728
  1. /* Copyright 2009, UCAR/Unidata and OPeNDAP, Inc.
  2. See the COPYRIGHT file for more information. */
  3. #ifndef OCDATA_H
  4. #define OCDATA_H
  5. typedef struct OCdimcounter {
  6. int rank;
  7. size_t index[OC_MAX_DIMS];
  8. size_t size[OC_MAX_DIMS];
  9. } OCdimcounter;
  10. extern const char StartOfSequence;
  11. extern const char EndOfSequence;
  12. /*Forward */
  13. struct OCcontent;
  14. /* Skip arbitrary dimensioned instance; Handles dimensioning.*/
  15. extern int ocskip(OCnode* node, XXDR* xdrs);
  16. extern int occountrecords(OCnode* node, XXDR* xdrs, size_t* nrecordsp);
  17. extern int ocxdrread(struct OCcontent*, XXDR*, char* memory, size_t, ocindex_t index, ocindex_t count);
  18. extern int ocskipinstance(OCnode* node, XXDR* xdrs, int state, int* tagp);
  19. #endif /*OCDATA_H*/