Class ScriptObject
Methods
Number ScriptObjectGetClassToken( ScriptObject
scriptObject, String class_name )
- Gets the token in 'scriptObject' corresponding to the class 'class_name'.
-
Number ScriptObjectGetID( ScriptObject scriptObject
)
- Returns a unique ID for this object. The object can be recovered by using
GetScriptObjectFromID function.
-
Boolean ScriptObjectIsValid( ScriptObject
scriptObject )
- Returns true if 'scriptObject' references a valid object.
-
Function ScriptObjectLookupMethod( ScriptObject
scriptObject, Function meth_abs, String class_name
)
- Returns the method of this object corresponding to the abstract method 'meth_abs' and
class 'class_name'.
-
Function ScriptObjectLookupMethod( ScriptObject
scriptObject, Function meth_abs )
- Returns the specific method of this object corresponding to the abstract method
'meth_abs'.
-
Related Functions
ScriptObject =( ScriptObject scriptObject1, !
)
-
-
ScriptObject =( ScriptObject scriptObject1,
ScriptObject scriptObject2 )
-
-
ScriptObject alloc( String class_name )
-
-
ScriptObject ClassNewObject( String class_name
)
-
-
ScriptObject GetScriptObjectFromID( Number id
)
- Returns the script object associated with the ID or NULL if the object does not exist.
-
ScriptObject NewStreamFromBuffer( Number
initial_size )
- Creates a new stream object from from a memory buffer with initial size
'initial_size'.
-
ScriptObject NewStreamFromFileReference( Number
file_ref, Boolean do_close )
- Creates a new stream object from the file reference. On destruction, closes the file
reference if 'do_close' is true.
-
void RegisterScriptPalette( ScriptObject, String
type, String name )
-
-
ScriptObject ScriptObjectNullify( ! )
-
-
Number StreamGetPos( ScriptObject stream )
- Returns the current position within the file.
-
Number StreamGetSize( ScriptObject stream )
- Returns the size of the file.
-
String StreamReadAsText( ScriptObject stream,
Number encoding, Number count )
- Reads count bytes from a file, returning them as a string assuming they have the
specified encoding.
-
Boolean StreamReadTextLine( ScriptObject stream,
Number encoding, String str_out )
- Read a line of text from the stream, storing it into the string variable, assuming
the text has the specified encoding. Return 1 if successful and 0 otherwise.
-
void StreamSetPos( ScriptObject stream, Number
base, Number offset )
- Sets the current position within the file as an offset from 'base', where base == 0
denotes beginning of file, 1 denotes current position, and 2 denotes end of file.
-
void StreamSetSize( ScriptObject stream, Number
size )
- Sets the size of the file.
-
void StreamWriteAsText( ScriptObject stream, Number
encoding, String data )
- Write the string to the file with the specified encoding.
-