_alloc

func _alloc<Element>(count: Int) 'alloc -> RawPtr

Allocates zero-filled raw storage sized for count values of Element.

The returned pointer carries no length or initialization state. Negative counts, overflow, alignment, and every later access remain trusted-runtime concerns.

View Source
pub func _alloc<Element>(count: Int) 'alloc -> RawPtr {
	#_ir(count) { %? = alloc Element $0 }
}