sqstd_register_bloblib |
SQRESULT sqstd_register_bloblib(
HSQUIRRELVM v)
;
initialize and register the blob library in the given VM.
- parameters:
-
- HSQUIRRELVM v
-
the target VM
- return:
-
an SQRESULT
- remarks:
-
The function aspects a table on top of the stack where to register the global library functions.
sqstd_getblob |
SQRESULT sqstd_getblob(
HSQUIRRELVM v, SQInteger idx, SQUserPointer * ptr)
;
retrieve the pointer of a blob's payload from an arbitrary position in the stack.
- parameters:
-
- HSQUIRRELVM v
-
the target VM
- SQInteger idx
-
and index in the stack
- SQUserPointer * ptr
-
A pointer to the userpointer that will point to the blob's payload
- return:
-
an SQRESULT
sqstd_getblobsize |
SQInteger sqstd_getblobsize(
HSQUIRRELVM v, SQInteger idx)
;
retrieve the size of a blob's payload from an arbitrary position in the stack.
- parameters:
-
- HSQUIRRELVM v
-
the target VM
- SQInteger idx
-
and index in the stack
- return:
-
the size of the blob at idx position
sqstd_createblob |
SQUserPointer sqstd_createblob(
HSQUIRRELVM v, SQInteger size)
;
creates a blob with the given payload size and pushes it in the stack.
- parameters:
-
- HSQUIRRELVM v
-
the target VM
- SQInteger size
-
the size of the blob payload that has to be created
- return:
-
a pointer to the newly created blob payload