MCPcopy Create free account
hub / github.com/Kitware/VTK / VTKSizeof

Function VTKSizeof

IO/NetCDF/vtkXArrayAccessor.cxx:91–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91int VTKSizeof(int vtktype)
92{
93 switch (vtktype)
94 {
95 case VTK_UNSIGNED_CHAR:
96 case VTK_CHAR:
97 return VTK_SIZEOF_CHAR;
98 case VTK_SHORT:
99 case VTK_UNSIGNED_SHORT:
100 return VTK_SIZEOF_SHORT;
101 case VTK_INT:
102 case VTK_UNSIGNED_INT:
103 return VTK_SIZEOF_INT;
104 case VTK_LONG:
105 case VTK_UNSIGNED_LONG:
106 return VTK_SIZEOF_LONG;
107 case VTK_LONG_LONG:
108 case VTK_UNSIGNED_LONG_LONG:
109 return VTK_SIZEOF_LONG_LONG;
110 case VTK_FLOAT:
111 return VTK_SIZEOF_FLOAT;
112 case VTK_DOUBLE:
113 return VTK_SIZEOF_DOUBLE;
114 default:
115 vtkGenericWarningMacro(<< "Unknown VTK type " << vtktype);
116 return -1;
117 }
118}
119
120void nc_strcpy(char* dst, std::string src)
121{

Callers 5

DecrementAndUpdateMethod · 0.85
CopyMethod · 0.85
get_varsMethod · 0.85
get_vars_doubleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected