sq_getscratchpad

Squirrel 2.2

sq_getscratchpad

SQChar * sq_getscratchpad(HSQUIRRELVM v, SQInteger minsize);

returns a pointer to a memory buffer that is at least as big as minsize.

parameters:
HSQUIRRELVM v

the target VM

SQInteger minsize

the requested size for the scratchpad buffer

remarks:

the buffer is valid until the next call to sq_getscratchpad