MCPcopy Index your code
hub / github.com/php/frankenphp / IsPacked

Function IsPacked

types.go:423–429  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

421// IsPacked determines if the given zend_array is a packed array (list).
422// Returns false if the array is nil or not packed.
423func 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).
432func htIsPacked(ht *C.zend_array) bool {

Callers

nothing calls this directly

Calls 1

htIsPackedFunction · 0.85

Tested by

no test coverage detected