Code::Blocks
SVN r11506
|
#include <new>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <squirrel.h>
#include <sqstdio.h>
#include <sqstdblob.h>
#include "sqstdstream.h"
#include "sqstdblobimpl.h"
Go to the source code of this file.
Macros | |
#define | SETUP_STREAM(v) |
#define | SAFE_READN(ptr, len) |
Functions | |
SQInteger | _stream_readblob (HSQUIRRELVM v) |
SQInteger | _stream_readn (HSQUIRRELVM v) |
SQInteger | _stream_writeblob (HSQUIRRELVM v) |
SQInteger | _stream_writen (HSQUIRRELVM v) |
SQInteger | _stream_seek (HSQUIRRELVM v) |
SQInteger | _stream_tell (HSQUIRRELVM v) |
SQInteger | _stream_len (HSQUIRRELVM v) |
SQInteger | _stream_flush (HSQUIRRELVM v) |
SQInteger | _stream_eos (HSQUIRRELVM v) |
void | init_streamclass (HSQUIRRELVM v) |
SQRESULT | declare_stream (HSQUIRRELVM v, const SQChar *name, SQUserPointer typetag, const SQChar *reg_name, SQRegFunction *methods, SQRegFunction *globals) |
Variables | |
static SQRegFunction | _stream_methods [] |
#define SAFE_READN | ( | ptr, | |
len | |||
) |
Definition at line 37 of file sqstdstream.cpp.
Referenced by _stream_readn().
#define SETUP_STREAM | ( | v | ) |
Definition at line 12 of file sqstdstream.cpp.
Referenced by _stream_eos(), _stream_flush(), _stream_len(), _stream_readblob(), _stream_readn(), _stream_seek(), _stream_tell(), _stream_writeblob(), and _stream_writen().
SQInteger _stream_eos | ( | HSQUIRRELVM | v | ) |
Definition at line 226 of file sqstdstream.cpp.
References SETUP_STREAM, sq_pushinteger(), and sq_pushnull().
SQInteger _stream_flush | ( | HSQUIRRELVM | v | ) |
Definition at line 216 of file sqstdstream.cpp.
References SETUP_STREAM, sq_pushinteger(), and sq_pushnull().
SQInteger _stream_len | ( | HSQUIRRELVM | v | ) |
Definition at line 209 of file sqstdstream.cpp.
References SETUP_STREAM, and sq_pushinteger().
SQInteger _stream_readblob | ( | HSQUIRRELVM | v | ) |
Definition at line 19 of file sqstdstream.cpp.
References SETUP_STREAM, sq_getinteger(), sq_getscratchpad(), sq_throwerror(), and sqstd_createblob().
SQInteger _stream_readn | ( | HSQUIRRELVM | v | ) |
Definition at line 40 of file sqstdstream.cpp.
References SAFE_READN, SETUP_STREAM, sq_getinteger(), sq_pushfloat(), sq_pushinteger(), and sq_throwerror().
SQInteger _stream_seek | ( | HSQUIRRELVM | v | ) |
Definition at line 183 of file sqstdstream.cpp.
References SETUP_STREAM, sq_getinteger(), sq_gettop(), sq_pushinteger(), and sq_throwerror().
SQInteger _stream_tell | ( | HSQUIRRELVM | v | ) |
Definition at line 202 of file sqstdstream.cpp.
References SETUP_STREAM, and sq_pushinteger().
SQInteger _stream_writeblob | ( | HSQUIRRELVM | v | ) |
Definition at line 100 of file sqstdstream.cpp.
References SETUP_STREAM, sq_pushinteger(), sq_throwerror(), sqstd_getblob(), and sqstd_getblobsize().
SQInteger _stream_writen | ( | HSQUIRRELVM | v | ) |
Definition at line 114 of file sqstdstream.cpp.
References SETUP_STREAM, sq_getfloat(), sq_getinteger(), and sq_throwerror().
SQRESULT declare_stream | ( | HSQUIRRELVM | v, |
const SQChar * | name, | ||
SQUserPointer | typetag, | ||
const SQChar * | reg_name, | ||
SQRegFunction * | methods, | ||
SQRegFunction * | globals | ||
) |
Definition at line 280 of file sqstdstream.cpp.
References init_streamclass(), sq_get(), sq_gettop(), sq_gettype(), sq_newclass(), sq_newclosure(), sq_pop(), sq_pushregistrytable(), sq_pushstring(), sq_remove(), sq_setnativeclosurename(), sq_setparamscheck(), sq_settop(), sq_settypetag(), and sq_throwerror().
Referenced by sqstd_register_bloblib(), and sqstd_register_iolib().
void init_streamclass | ( | HSQUIRRELVM | v | ) |
Definition at line 249 of file sqstdstream.cpp.
References _stream_methods, sq_get(), sq_newclass(), sq_newclosure(), sq_pop(), sq_pushregistrytable(), sq_pushroottable(), sq_pushstring(), sq_setparamscheck(), and sq_settypetag().
Referenced by declare_stream().
|
static |
Definition at line 236 of file sqstdstream.cpp.
Referenced by init_streamclass().