13 #define NETCDF_MEM_H 1
16 #if defined(DLL_NETCDF)
17 # if defined(DLL_EXPORT)
18 # define MSC_EXTRA __declspec(dllexport)
20 # define MSC_EXTRA __declspec(dllimport)
27 #define EXTERNL MSC_EXTRA extern
29 typedef struct NC_memio {
33 #define NC_MEMIO_LOCKED 1
36 #if defined(__cplusplus)
41 EXTERNL int nc_open_mem(
const char* path,
int mode,
size_t size,
void* memory,
int* ncidp);
53 #if defined(__cplusplus)
EXTERNL int nc_close_memio(int ncid, NC_memio *info)
Do a normal close (see nc_close()) on an in-memory dataset, then return a copy of the final memory co...
#define EXTERNL
Needed for DLL build.
EXTERNL int nc_open_memio(const char *path, int mode, NC_memio *info, int *ncidp)
Open a netCDF file with the contents taken from a block of memory.
EXTERNL int nc_open_mem(const char *path, int mode, size_t size, void *memory, int *ncidp)
Open a netCDF file with the contents taken from a block of memory.
EXTERNL int nc_create_mem(const char *path, int mode, size_t initialsize, int *ncidp)
Create a netCDF file with the contents stored in memory.