IsPacked determines if the given zend_array is a packed array (list). Returns false if the array is nil or not packed.
(arr unsafe.Pointer)
| 421 | // IsPacked determines if the given zend_array is a packed array (list). |
| 422 | // Returns false if the array is nil or not packed. |
| 423 | func IsPacked(arr unsafe.Pointer) bool { |
| 424 | if arr == nil { |
| 425 | return false |
| 426 | } |
| 427 | |
| 428 | return htIsPacked((*C.zend_array)(arr)) |
| 429 | } |
| 430 | |
| 431 | // htIsPacked checks if a zend_array is a list (packed) or hashmap (not packed). |
| 432 | func htIsPacked(ht *C.zend_array) bool { |
nothing calls this directly
no test coverage detected