NetCDF  4.9.2
nc4type.c File Reference
#include "nc4internal.h"
#include "nc4dispatch.h"
Include dependency graph for nc4type.c:

Go to the source code of this file.

Macros

#define NC_BYTE_LEN   1
 
#define NC_CHAR_LEN   sizeof(char)
 
#define NC_DOUBLE_LEN   8
 
#define NC_FLOAT_LEN   4
 
#define NC_INT64_LEN   8
 
#define NC_INT_LEN   4
 
#define NC_SHORT_LEN   2
 
#define NC_STRING_LEN   sizeof(char *)
 

Functions

int nc4_get_typeclass (const NC_FILE_INFO_T *h5, nc_type xtype, int *type_class)
 
int NC4_inq_atomic_type (nc_type typeid1, char *name, size_t *size)
 
int NC4_inq_compound_field (int ncid, nc_type typeid1, int fieldid, char *name, size_t *offsetp, nc_type *field_typeidp, int *ndimsp, int *dim_sizesp)
 
int NC4_inq_compound_fieldindex (int ncid, nc_type typeid1, const char *name, int *fieldidp)
 
int NC4_inq_enum_ident (int ncid, nc_type xtype, long long value, char *identifier)
 
int NC4_inq_enum_member (int ncid, nc_type typeid1, int idx, char *identifier, void *value)
 
int NC4_inq_type (int ncid, nc_type typeid1, char *name, size_t *size)
 
int NC4_inq_type_fixed_size (int ncid, nc_type xtype, int *fixedsizep)
 
EXTERNL int NC4_inq_typeid (int ncid, const char *name, nc_type *typeidp)
 
int NC4_inq_typeids (int ncid, int *ntypes, int *typeids)
 
int NC4_inq_user_type (int ncid, nc_type typeid1, char *name, size_t *size, nc_type *base_nc_typep, size_t *nfieldsp, int *classp)
 
int NC4_lookup_atomic_type (const char *name, nc_type *idp, size_t *sizep)
 

Variables

const char * nc4_atomic_name [NUM_ATOMIC_TYPES]
 
static const int nc4_atomic_size [NUM_ATOMIC_TYPES]
 

Variable Documentation

◆ nc4_atomic_name

const char* nc4_atomic_name[NUM_ATOMIC_TYPES]
Initial value:
= {"none", "byte", "char",
"short", "int", "float",
"double", "ubyte",
"ushort", "uint",
"int64", "uint64", "string"}

Definition at line 33 of file nc4type.c.

◆ nc4_atomic_size

const int nc4_atomic_size[NUM_ATOMIC_TYPES]
static
Initial value:
= {0, NC_BYTE_LEN, NC_CHAR_LEN, NC_SHORT_LEN,
NC_INT_LEN, NC_FLOAT_LEN, NC_DOUBLE_LEN,
NC_BYTE_LEN, NC_SHORT_LEN, NC_INT_LEN, NC_INT64_LEN,
NC_INT64_LEN, NC_STRING_LEN}

Definition at line 38 of file nc4type.c.