| Code::Blocks
    SVN r11506
    | 
#include <new>#include <squirrel.h>#include <sqstdio.h>#include <string.h>#include <sqstdblob.h>#include "sqstdstream.h"#include "sqstdblobimpl.h"Go to the source code of this file.
| Macros | |
| #define | SQSTD_BLOB_TYPE_TAG (SQSTD_STREAM_TYPE_TAG | 0x00000002) | 
| #define | SETUP_BLOB(v) | 
| #define | _DECL_BLOB_FUNC(name, nparams, typecheck) {_SC(#name),_blob_##name,nparams,typecheck} | 
| #define | _DECL_GLOBALBLOB_FUNC(name, nparams, typecheck) {_SC(#name),_g_blob_##name,nparams,typecheck} | 
| Functions | |
| static SQInteger | _blob_resize (HSQUIRRELVM v) | 
| static void | __swap_dword (unsigned int *n) | 
| static void | __swap_word (unsigned short *n) | 
| static SQInteger | _blob_swap4 (HSQUIRRELVM v) | 
| static SQInteger | _blob_swap2 (HSQUIRRELVM v) | 
| static SQInteger | _blob__set (HSQUIRRELVM v) | 
| static SQInteger | _blob__get (HSQUIRRELVM v) | 
| static SQInteger | _blob__nexti (HSQUIRRELVM v) | 
| static SQInteger | _blob__typeof (HSQUIRRELVM v) | 
| static SQInteger | _blob_releasehook (SQUserPointer p, SQInteger) | 
| static SQInteger | _blob_constructor (HSQUIRRELVM v) | 
| static SQInteger | _g_blob_casti2f (HSQUIRRELVM v) | 
| static SQInteger | _g_blob_castf2i (HSQUIRRELVM v) | 
| static SQInteger | _g_blob_swap2 (HSQUIRRELVM v) | 
| static SQInteger | _g_blob_swap4 (HSQUIRRELVM v) | 
| static SQInteger | _g_blob_swapfloat (HSQUIRRELVM v) | 
| SQRESULT | sqstd_getblob (HSQUIRRELVM v, SQInteger idx, SQUserPointer *ptr) | 
| SQInteger | sqstd_getblobsize (HSQUIRRELVM v, SQInteger idx) | 
| SQUserPointer | sqstd_createblob (HSQUIRRELVM v, SQInteger size) | 
| SQRESULT | sqstd_register_bloblib (HSQUIRRELVM v) | 
| Variables | |
| static SQRegFunction | _blob_methods [] | 
| static SQRegFunction | bloblib_funcs [] | 
| #define _DECL_BLOB_FUNC | ( | name, | |
| nparams, | |||
| typecheck | |||
| ) | {_SC(#name),_blob_##name,nparams,typecheck} | 
Definition at line 140 of file sqstdblob.cpp.
| #define _DECL_GLOBALBLOB_FUNC | ( | name, | |
| nparams, | |||
| typecheck | |||
| ) | {_SC(#name),_g_blob_##name,nparams,typecheck} | 
Definition at line 201 of file sqstdblob.cpp.
| #define SETUP_BLOB | ( | v | ) | 
Definition at line 15 of file sqstdblob.cpp.
Referenced by _blob__get(), _blob__nexti(), _blob__set(), _blob_resize(), _blob_swap2(), and _blob_swap4().
| #define SQSTD_BLOB_TYPE_TAG (SQSTD_STREAM_TYPE_TAG | 0x00000002) | 
Definition at line 10 of file sqstdblob.cpp.
Referenced by sqstd_createblob(), sqstd_getblob(), sqstd_getblobsize(), and sqstd_register_bloblib().
| 
 | static | 
Definition at line 31 of file sqstdblob.cpp.
Referenced by _blob_swap4(), _g_blob_swap4(), and _g_blob_swapfloat().
| 
 | static | 
Definition at line 39 of file sqstdblob.cpp.
Referenced by _blob_swap2().
| 
 | static | 
Definition at line 79 of file sqstdblob.cpp.
References SETUP_BLOB, sq_getinteger(), sq_pushinteger(), and sq_throwerror().
| 
 | static | 
Definition at line 90 of file sqstdblob.cpp.
References SETUP_BLOB, sq_getinteger(), sq_gettype(), sq_pushinteger(), sq_pushnull(), and sq_throwerror().
| 
 | static | 
Definition at line 66 of file sqstdblob.cpp.
References SETUP_BLOB, sq_getinteger(), sq_push(), and sq_throwerror().
| 
 | static | 
Definition at line 109 of file sqstdblob.cpp.
References sq_pushstring().
| 
 | static | 
Definition at line 123 of file sqstdblob.cpp.
References _blob_releasehook(), sq_getinteger(), sq_gettop(), sq_setinstanceup(), sq_setreleasehook(), and sq_throwerror().
| 
 | static | 
Definition at line 116 of file sqstdblob.cpp.
Referenced by _blob_constructor().
| 
 | static | 
Definition at line 21 of file sqstdblob.cpp.
References SETUP_BLOB, sq_getinteger(), and sq_throwerror().
| 
 | static | 
Definition at line 55 of file sqstdblob.cpp.
References __swap_word(), and SETUP_BLOB.
| 
 | static | 
Definition at line 44 of file sqstdblob.cpp.
References __swap_dword(), and SETUP_BLOB.
| 
 | static | 
Definition at line 165 of file sqstdblob.cpp.
References sq_getfloat(), and sq_pushinteger().
| 
 | static | 
Definition at line 157 of file sqstdblob.cpp.
References sq_getinteger(), and sq_pushfloat().
| 
 | static | 
Definition at line 173 of file sqstdblob.cpp.
References sq_getinteger(), and sq_pushinteger().
| 
 | static | 
Definition at line 182 of file sqstdblob.cpp.
References __swap_dword(), sq_getinteger(), and sq_pushinteger().
| 
 | static | 
Definition at line 192 of file sqstdblob.cpp.
References __swap_dword(), sq_getfloat(), and sq_pushfloat().
| SQUserPointer sqstd_createblob | ( | HSQUIRRELVM | v, | 
| SQInteger | size | ||
| ) | 
Definition at line 228 of file sqstdblob.cpp.
References NULL, sq_call(), sq_get(), sq_getinstanceup(), sq_gettop(), sq_push(), sq_pushinteger(), sq_pushregistrytable(), sq_pushstring(), sq_remove(), sq_settop(), and SQSTD_BLOB_TYPE_TAG.
Referenced by _stream_readblob().
| SQRESULT sqstd_getblob | ( | HSQUIRRELVM | v, | 
| SQInteger | idx, | ||
| SQUserPointer * | ptr | ||
| ) | 
Definition at line 211 of file sqstdblob.cpp.
References sq_getinstanceup(), and SQSTD_BLOB_TYPE_TAG.
Referenced by _stream_writeblob().
| SQInteger sqstd_getblobsize | ( | HSQUIRRELVM | v, | 
| SQInteger | idx | ||
| ) | 
Definition at line 220 of file sqstdblob.cpp.
References sq_getinstanceup(), and SQSTD_BLOB_TYPE_TAG.
Referenced by _stream_writeblob().
| SQRESULT sqstd_register_bloblib | ( | HSQUIRRELVM | v | ) | 
Definition at line 248 of file sqstdblob.cpp.
References _blob_methods, bloblib_funcs, declare_stream(), and SQSTD_BLOB_TYPE_TAG.
| 
 | static | 
Definition at line 141 of file sqstdblob.cpp.
Referenced by sqstd_register_bloblib().
| 
 | static | 
Definition at line 202 of file sqstdblob.cpp.
Referenced by sqstd_register_bloblib().
 1.8.13
 1.8.13