MCPcopy Create free account
hub / github.com/abgros/stalloc / allocate_blocks

Method allocate_blocks

src/syncstalloc.rs:99–106  ·  view source on GitHub ↗

Tries to allocate `count` blocks. If the allocation succeed, a pointer is returned. This function never allocates more than necessary. # Safety `size` must be nonzero, and `align` must be a power of 2 in the range `1..=2^29 / B`. # Errors Will return `AllocError` if the allocation was unsuccessful, in which case this function was a no-op.

(
		&self,
		size: usize,
		align: usize,
	)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

acquire_lockedMethod · 0.80

Tested by

no test coverage detected