[−][src]Function fluence::sdk::memory::alloc
pub unsafe fn alloc(size: NonZeroUsize) -> Result<NonNull<u8>, MemError>
Allocates memory area of specified size and returns its address. Actually is just a wrapper for
GlobalAlloc::alloc
.
Safety
See GlobalAlloc::alloc
.