dumplib.c#1050 | ncvlen_typ_tostring(const nctype_t *tinfo, safebuf_t *sfbf, const void *valp) { |
#1051 | nc_type base_type = tinfo->base_tid; |
#1132 | nccomp_typ_tostring(const nctype_t *tinfo, safebuf_t *sfbf, const void *valp) { |
#1133 | int nfields = tinfo->nfields; |
#1140 | size_t offset = tinfo->offsets[fidx]; |
#1141 | nc_type fid = tinfo->fids[fidx]; /* field type id */ |
#1144 | if(tinfo->ranks[fidx] == 0) { |
#1156 | int rank = tinfo->ranks[fidx]; |
#1160 | slen = tinfo->sides[fidx][rank-1]; |
#1163 | nstrings *= tinfo->sides[fidx][j]; |
#1175 | for(i = 0; i < tinfo->nvals[fidx]; i++) { |
#1178 | if(i < tinfo->nvals[fidx] - 1) { |
#1382 | return ncstring_typ_tostring(varp->tinfo, sfbf, valp); |
#1388 | return ncenum_typ_tostring(varp->tinfo, sfbf, valp); |
#1395 | return ncopaque_typ_tostring(varp->tinfo, sfbf, valp); |
#1401 | return ncvlen_typ_tostring(varp->tinfo, sfbf, valp); |
#1406 | return nccomp_typ_tostring(varp->tinfo, sfbf, valp); |
#1468 | switch(varp->tinfo->class) { |
#1483 | varp->tinfo->class); |
#1582 | nctype_t *tinfo; /* details about the type */ |
#1588 | tinfo = (nctype_t *) emalloc(sizeof(nctype_t)); |
#1590 | NC_CHECK( nc_inq_user_type(ncid, typeids[t], type_name, &tinfo->size, |
#1591 | &tinfo->base_tid, &tinfo->nfields, |
#1592 | &tinfo->class) ); |
#1593 | tinfo->tid = typeids[t]; |
#1594 | tinfo->ncid = ncid; |
#1595 | tinfo->name = strdup(type_name); |
#1596 | tinfo->grps = 0; |
#1597 | if(tinfo->class == NC_VLEN) { |
#1598 | tinfo->size = sizeof(nc_vlen_t); /* not size of base type */ |
#1604 | tinfo->grps = strdup(group_name); |
#1606 | switch(tinfo->class) { |
#1608 | tinfo->val_equals = eq_funcs[tinfo->base_tid-1]; |
#1609 | tinfo->typ_tostring = (typ_tostring_func) ncenum_typ_tostring; |
#1612 | tinfo->val_equals = (val_equals_func) nccomp_val_equals; |
#1613 | tinfo->typ_tostring = (typ_tostring_func) nccomp_typ_tostring; |
#1614 | tinfo->fids = (nc_type *) emalloc((tinfo->nfields + 1) |
#1616 | tinfo->offsets = (size_t *) emalloc((tinfo->nfields + 1) |
#1618 | tinfo->ranks = (int *) emalloc((tinfo->nfields + 1) |
#1620 | tinfo->sides = (int **) emalloc((tinfo->nfields + 1) |
#1622 | tinfo->nvals = (int *) emalloc((tinfo->nfields + 1) |
#1624 | for (fidx = 0; fidx < tinfo->nfields; fidx++) { |
#1631 | NC_CHECK( nc_inq_compound_field(ncid, tinfo->tid, fidx, NULL, |
#1635 | NC_CHECK( nc_inq_compound_field(ncid, tinfo->tid, fidx, NULL, |
#1637 | tinfo->fids[fidx] = ftype; |
#1638 | tinfo->offsets[fidx] = offset; |
#1639 | tinfo->ranks[fidx] = rank; |
#1641 | tinfo->sides[fidx] = (int *) emalloc(rank * sizeof(int)); |
#1642 | tinfo->nvals[fidx] = 1; |
#1644 | tinfo->sides[fidx][i] = sides[i]; |
#1645 | tinfo->nvals[fidx] *= sides[i]; |
#1652 | tinfo->val_equals = (val_equals_func) ncvlen_val_equals; |
#1653 | tinfo->typ_tostring = (typ_tostring_func) ncvlen_typ_tostring; |
#1656 | tinfo->val_equals = (val_equals_func) ncopaque_val_equals; |
#1657 | tinfo->typ_tostring = (typ_tostring_func) ncopaque_typ_tostring; |
#1660 | error("bad class: %d", tinfo->class); |
#1664 | typeadd(tinfo); |
nccomps.h#71 | struct nctype_t *tinfo; /* full type information */ |
#92 | nctype_t *tinfo; |
ncdump.c#773 | att.tinfo = get_typeinfo(att.type); |
#806 | att.valgp = (void *) emalloc((att.len + 1) * att.tinfo->size ); |
#1034 | if(varp->tinfo->size > 1) /* Endianness is meaningless for 1-byte types */ |
#1425 | fillvalp = emalloc(vp->tinfo->size + 1); |
#1675 | var.tinfo = get_typeinfo(var.type); |
#1784 | var.tinfo = get_typeinfo(var.type); |
nctime0.c#330 | valp += att->tinfo->size; /* increment value pointer, by type */ |
vardata.c#149 | nctype_t *typ = attp->tinfo; |
#168 | (*(varp->tinfo->val_equals))((const nctype_t *)varp->tinfo, |
#229 | valp += ap->tinfo->size; /* next value according to type */ |
#481 | valp += vp->tinfo->size; /* next value according to type */ |
#580 | vals = emalloc(ncols * vp->tinfo->size); |
#697 | valp += vp->tinfo->size; /* next value according to type */ |
#755 | vals = emalloc(ncols * vp->tinfo->size); |