MCPcopy Create free account
hub / github.com/OpenWebCAD/node-occ / ArrayTypeToString

Function ArrayTypeToString

src/Util.h:37–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35};
36
37inline const char* ArrayTypeToString(ArrayType type) {
38 const char* name = 0;
39 switch (type) {
40 case A_SByte: name = "Uint8Array"; break;
41 case A_UInt8: name = "Uint8Array"; break;
42 case A_Int16: name = "Int16Array"; break;
43 case A_UInt16: name = "Uint16Array"; break;
44 case A_Int32: name = "Int32Array"; break;
45 case A_UInt32: name = "Uint32Array"; break;
46 case A_Float32: name = "Float32Array"; break;
47 case A_Float64: name = "Float64Array"; break;
48 default:
49 name = 0;
50 }
51 return name;
52}
53inline int ArrayTypeSize(ArrayType type) {
54
55 switch (type) {

Callers 1

makeTypedArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected