(typeID TypeId)
| 231 | } |
| 232 | |
| 233 | func isPrimitiveArrayType(typeID TypeId) bool { |
| 234 | switch typeID { |
| 235 | case BOOL_ARRAY, |
| 236 | INT8_ARRAY, |
| 237 | INT16_ARRAY, |
| 238 | INT32_ARRAY, |
| 239 | INT64_ARRAY, |
| 240 | UINT8_ARRAY, |
| 241 | UINT16_ARRAY, |
| 242 | UINT32_ARRAY, |
| 243 | UINT64_ARRAY, |
| 244 | FLOAT8_ARRAY, |
| 245 | FLOAT16_ARRAY, |
| 246 | BFLOAT16_ARRAY, |
| 247 | FLOAT32_ARRAY, |
| 248 | FLOAT64_ARRAY: |
| 249 | return true |
| 250 | default: |
| 251 | return false |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | var primitiveTypeSizes = map[TypeId]int{ |
| 256 | BOOL: 1, |
no outgoing calls
no test coverage detected