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

Method grow_in_place

src/syncstalloc.rs:141–149  ·  view source on GitHub ↗

Tries to grow the current allocation in-place. If that isn't possible, this function is a no-op. # Safety `ptr` must point to a valid allocation of `old_size` blocks. Also, `new_size > old_size`. # Errors Will return `AllocError` if the grow was unsuccessful, in which case this function was a no-op.

(
		&self,
		ptr: NonNull<u8>,
		old_size: usize,
		new_size: 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