GC.extend

Attempt to in-place enlarge the memory block pointed to by p by at least minsize bytes, up to a maximum of maxsize additional bytes. This does not attempt to move the memory block (like realloc() does).

interface GC
size_t
extend
nothrow
(
void* p
,
size_t minsize
,
size_t maxsize
,
const TypeInfo ti
)

Return Value

Type: size_t

0 if could not extend p, total size of entire memory block if successful.

Suggestion Box / Bug Report