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

Function htIsPacked

types.go:432–436  ·  view source on GitHub ↗

htIsPacked checks if a zend_array is a list (packed) or hashmap (not packed).

(ht *C.zend_array)

Source from the content-addressed store, hash-verified

430
431// htIsPacked checks if a zend_array is a list (packed) or hashmap (not packed).
432func 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
439func extractZvalValue(zval *C.zval, expectedType C.uint8_t) (unsafe.Pointer, error) {

Callers 4

goArrayFunction · 0.85
GoPackedArrayFunction · 0.85
goValueFunction · 0.85
IsPackedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected