htIsPacked checks if a zend_array is a list (packed) or hashmap (not packed).
(ht *C.zend_array)
| 430 | |
| 431 | // htIsPacked checks if a zend_array is a list (packed) or hashmap (not packed). |
| 432 | func htIsPacked(ht *C.zend_array) bool { |
| 433 | flags := *(*C.uint32_t)(unsafe.Pointer(&ht.u[0])) |
| 434 | |
| 435 | return (flags & C.HASH_FLAG_PACKED) != 0 |
| 436 | } |
| 437 | |
| 438 | // extractZvalValue returns a pointer to the zval value cast to the expected type |
| 439 | func extractZvalValue(zval *C.zval, expectedType C.uint8_t) (unsafe.Pointer, error) { |
no outgoing calls
no test coverage detected