home
 
 index of namespace default
 
 index of project core
 
 index of module core

Class core.Object


SynopsisThis is the baseclass for all scriptengine objects. 

  Derived classes:
  Methods: Description:


Please notice that normally you will not need to use these methods directly but rather through specialized API classes like e.g. File, String, Buffer etc. These methods are mostly useful when dealing with "generic" objects but please make sure to also look at the TKS class API.


 
 top of page
Method yacArrayAlloc
Allocate array elements.
Signature
yacArrayAlloc(intsx,
  intsy,
  inttype,
  intelementByteSize 
  )  
 :boolean
Arguments
intsxArray width
intsyArray height (e.g. for texture objects).
inttypeArray element type (see Value type encoding)
intelementByteSizeSize of an array element
Returns
booleantrue if elements were allocated successfully, false otherwise.
Description

Most arrays will only use the first argument ("sx").
See also:  


 
 top of page
Method yacArrayCopySize
Copy array size from object "o".
Signature
yacArrayCopySize(Objecto)
Arguments
ObjectoArray object to copy the size from
See also:  


 
 top of page
Method yacArrayGet
Get array element
Signature
yacArrayGet(intindex,
  Valuer 
  )  
Arguments
intindexArray index
ValuerReceives the element value
See also:  


 
 top of page
Method yacArrayGetDeref
Get (deletable) array element.
Signature
yacArrayGetDeref(intindex,
  Valuer 
  )  
Arguments
intindexArray index
ValuerReceives the element value
Description

If the array stores a deletable object, this method will flag the element as non-deletable and return the deletable object.
See also:  


 
 top of page
Method yacArrayGetElementByteSize
Return the size of a single array element.
Signature
yacArrayGetElementByteSize():int
Returns
intElement byte size or 0 if the size is unknown.
See also:  


 
 top of page
Method yacArrayGetElementType
Return the array element type.
Signature
yacArrayGetElementType():int
Returns
intElement type. The type is encoded using the Value type encoding except that 0 means variable type.
See also:  


 
 top of page
Method yacArrayGetHeight
Return the array height.
Signature
yacArrayGetHeight():int
Returns
intArray height
See also:  


 
 top of page
Method yacArrayGetMaxElements
Return the total number of array elements.
Signature
yacArrayGetMaxElements():int
Returns
intTotal number of elements.
See also:  


 
 top of page
Method yacArrayGetNumElements
Return the number of used array elements.
Signature
yacArrayGetNumElements():int
Returns
intNumber of used elements
See also:  


 
 top of page
Method yacArrayGetStride
Return the number of bytes between two consecutive lines.
Signature
yacArrayGetStride():int
Returns
intNumber of bytes per row.
Description

This is mostly used by e.g. the texture class (see tkopengl plugin).
See also:  


 
 top of page
Method yacArrayGetWidth
Return the array width.
Signature
yacArrayGetWidth():int
Returns
intArray width
See also:  


 
 top of page
Method yacArrayNew
Return new array object for this object.
Signature
yacArrayNew():Object
Returns
Objectnew array object
Description

This is used to create specialized Array objects for a given object type.
See also:  


 
 top of page
Method yacArrayRealloc
Re-allocate array elements.
Signature
yacArrayRealloc(intsx,
  intsy,
  inttype,
  intelementByteSize 
  )  
 :int
Arguments
intsxArray width
intsyArray height (e.g. for texture objects).
inttypeArray element type (see Value type encoding)
intelementByteSizeSize of an array element
Returns
inttrue if elements were allocated successfully, false otherwise.
Description

Most arrays will only use the first argument ("sx").
See also:  


 
 top of page
Method yacArraySet
Set array element.
Signature
yacArraySet(intindex,
  Valuev 
  )  
Arguments
intindexArray index
ValuevNew element value
See also:  


 
 top of page
Method yacArraySetHeight
Set the array height.
Signature
yacArraySetHeight(intsy)
Arguments
intsyNew array height
See also:  


 
 top of page
Method yacArraySetTemplate
Set the template object to use for allocation of new array elements.
Signature
yacArraySetTemplate(Objecttemplate)
Arguments
ObjecttemplateThe new array element template object
Description

This is mostly used by e.g. the ObjectArray or ClassArray classes.
See also:  


 
 top of page
Method yacArraySetWidth
Set the array width.
Signature
yacArraySetWidth(intsx)
Arguments
intsxNew array width
See also:  


 
 top of page
Method yacCanDeserializeClass
Check whether this class can be deserialized from the given inputstream.
Signature
yacCanDeserializeClass(Streamifs)
 :boolean
Arguments
StreamifsInput stream.
Returns
booleantrue If this object can be deserialized from the stream, false otherwise.
See also:  


 
 top of page
Method yacClassName
Return the class name.
Signature
yacClassName():String
Returns
Stringnew String instance that holds the class name
Description

Also see @yacMetaClassName.
See also:  


 
 top of page
Method yacConstantGetNames
Return the names of the C++ constants.
Signature
yacConstantGetNames():StringArray
Returns
StringArraynew StringArray instance that holds the constant names
See also:  


 
 top of page
Method yacConstantGetNum
Return the number of constants of a C++ class.
Signature
yacConstantGetNum():int
Returns
intNumber of constants
See also:  


 
 top of page
Method yacConstantGetTypes
Return the types of the C++ constants.
Signature
yacConstantGetTypes():IntArray
Returns
IntArraynew IntArray that holds the constant types.
Description

The Value type encoding is used, i.e. 0=void, 1=int, 2=float, 3=Object, 4=String.
See also:  


 
 top of page
Method yacConstantGetValues
Return the C++ constant values.
Signature
yacConstantGetValues():ValueArray
Returns
ValueArraynew ValueArray that holds the constant values.
See also:  


 
 top of page
Method yacCopy
Copy object data from "o".
Signature
yacCopy(Objecto)
 :boolean
Arguments
Objecto
Returns
booleantrue if copy succeded, false otherwise.

 
 top of page
Method yacDeserialize
Deserialize object from the given inputstream.
Signature
yacDeserialize(Streamifs,
  booleanbTypeInfo 
  )  
Arguments
StreamifsInput stream
booleanbTypeInfotrue to expect type information, false to serialize just the raw object data
See also:  


 
 top of page
Method yacEquals
Compare this to object "o".
Signature
yacEquals(Objecto)
 :boolean
Arguments
Objecto
Returns
booleantrue if objects are equals, false otherwise.

 
 top of page
Method yacGetSignalStringList
Return a String that describe the signal names and callback signatures
Signature
yacGetSignalStringList():String
Returns
StringSignal string
Description
exposed by a C++ object. For an example, take a look at the tksdl plugin.

 
 top of page
Method yacHashGet
Get a hashtable entry.
Signature
yacHashGet(Stringkey,
  Valuer 
  )  
Arguments
StringkeyThe hash key name
ValuerReceives the hashtable entry value.
See also:  


 
 top of page
Method yacHashGetDeref
Get (deletable) hashtable element.
Signature
yacHashGetDeref(Stringkey,
  Valuer 
  )  
Arguments
StringkeyThe hash key name
ValuerReceives the hashtable entry value
Description

If the hashtable stores a deletable object, this method will flag the element as non-deletable and return the deletable object.
See also:  


 
 top of page
Method yacHashSet
Modify/create a hashtable entry.
Signature
yacHashSet(Stringkey,
  Valuevalue 
  )  
Arguments
StringkeyThe hash key name
ValuevalueThe element value
See also:  


 
 top of page
Method yacInstanceOf
Check whether this C++ class is an instance of C++ class "o".
Signature
yacInstanceOf(Objecto)
 :boolean
Arguments
ObjectoRighthandside C++ object
Returns
booleantrue if this is an instance of the C++ object/class "o", false otherwise
See also:  


 
 top of page
Method yacIsStream
Check whether object is a Stream.
Signature
yacIsStream():boolean
Returns
booleantrue if the object implements the stream interface, false otherwise.
See also:  


 
 top of page
Method yacMemberGetNames
Return the C++ member names.
Signature
yacMemberGetNames():StringArray
Returns
StringArrayNew StringArray object that holds the member names.
See also:  


 
 top of page
Method yacMemberGetNum
Return the number of C++ members.
Signature
yacMemberGetNum():int
Returns
intNumber of C++ members.
See also:  


 
 top of page
Method yacMemberGetObjectTypes
Return the class names of the C++ object members.
Signature
yacMemberGetObjectTypes():StringArray
Returns
StringArrayNew StringArray that holds the member class names.
Description

If a member is not an Object, an empty String will be returned for that member.
See also:  


 
 top of page
Method yacMemberGetOffsets
Return the byteoffsets of the C++ object members.
Signature
yacMemberGetOffsets():IntArray
Returns
IntArraynew IntArray instance that holds the member types
See also:  


 
 top of page
Method yacMemberGetTypes
Return the C++ member types.
Signature
yacMemberGetTypes():IntArray
Returns
IntArrayNew IntArray object that holds the member types.
Description

The Value type encoding is used, i.e. 0=void, 1=int, 2=float, 3=Object, 4=String.
See also:  


 
 top of page
Method yacMetaClassInstanceOf
Check whether this object is an instance of meta class "o".
Signature
yacMetaClassInstanceOf(Objecto)
 :boolean
Arguments
ObjectoRighthandside object
Returns
booleantrue if this is an instance of meta class "o", false otherwise.
See also:  


 
 top of page
Method yacMetaClassMemberGet
Return value of meta class member.
Signature
yacMetaClassMemberGet(intak)
 :var
Arguments
intakAccess key
Returns
varMember value
See also:  


 
 top of page
Method yacMetaClassMemberGetAccessKeyByIndex
Return access key to meta class member by index.
Signature
yacMetaClassMemberGetAccessKeyByIndex(intindex)
 :int
Arguments
intindexMember index
Returns
intAccess key
See also:  


 
 top of page
Method yacMetaClassMemberGetAccessKeyByName
Return access key to meta class member by name.
Signature
yacMetaClassMemberGetAccessKeyByName(Stringname)
 :int
Arguments
StringnameMember name
Returns
intAccess key
See also:  


 
 top of page
Method yacMetaClassMemberGetName
Return name of meta class member associated with the given access key.
Signature
yacMetaClassMemberGetName(intak)
 :String
Arguments
intakAccess key
Returns
StringMeta class member name
See also:  


 
 top of page
Method yacMetaClassMemberGetNum
Return number of meta class members.
Signature
yacMetaClassMemberGetNum():int
Returns
intNumber of meta class members
See also:  


 
 top of page
Method yacMetaClassMemberGetType
Return meta class member type.
Signature
yacMetaClassMemberGetType(intak)
Arguments
intakAccess key
Description

The member type is encoded using the Value type encoding.
See also:  


 
 top of page
Method yacMetaClassMemberSet
Set value of meta class member.
Signature
yacMetaClassMemberSet(intak,
  Valuev 
  )  
Arguments
intakAccess key
ValuevNew value of meta class member
See also:  


 
 top of page
Method yacMetaClassName
Return object meta class name.
Signature
yacMetaClassName():String
Returns
StringMeta class name
Description

This is mostly used with script classes. See Class.
See also:  


 
 top of page
Method yacMethodGetNames
Return the C++ method names.
Signature
yacMethodGetNames():StringArray
Returns
StringArraynew StringArray object that holds the C++ method names.
See also:  


 
 top of page
Method yacMethodGetNum
Return the number of C++ methods exposed to the scriptengine.
Signature
yacMethodGetNum():int
Returns
intNumber of C++ methods
See also:  


 
 top of page
Method yacMethodGetNumParameters
Return the number of parameters to each C++ method exposed to the scriptengine,
Signature
yacMethodGetNumParameters():IntArray
Returns
IntArraynew IntArray object that holds the parameter counter for each method.
See also:  


 
 top of page
Method yacMethodGetParameterObjectTypes
Return the object parameter class names for each C++ method exposed to the scriptengine.
Signature
yacMethodGetParameterObjectTypes():ValueArray
Returns
ValueArraynew ValueArray that holds the parameter class names (StringArray) for each C++ method.
See also:  


 
 top of page
Method yacMethodGetParameterTypes
Return the parameter types arrays for each C++ method exposed to the scriptengine.
Signature
yacMethodGetParameterTypes():ValueArray
Returns
ValueArraynew ValueArray that holds the parameters types (IntArray) for each C++ method.
Description

The Value type encoding is used, i.e. 0=void, 1=int, 2=float, 3=Object, 4=String.
See also:  


 
 top of page
Method yacMethodGetReturnObjectTypes
Return the return object classnames for each C++ method exposed to the scriptengine.
Signature
yacMethodGetReturnObjectTypes():StringArray
Returns
StringArraynew StringArray object that holds the return object classnames for each C++ method.
See also:  


 
 top of page
Method yacMethodGetReturnTypes
Return the return types for each C++ method exposed to the scriptengine.
Signature
yacMethodGetReturnTypes():IntArray
Returns
IntArraynew IntArray object that holds the return types for each C++ method.
Description

The Value type encoding is used, i.e. 0=void, 1=int, 2=float, 3=Object with the exception that the return type 4 means "variable". The last parameter to a variable return type method must be YAC_Value *_r. Methods that want to return deletable objects must also use return type 4.
See also:  


 
 top of page
Method yacNewObject
Return a new instance of this class.
Signature
yacNewObject():Object
Returns
Objectnew Object

 
 top of page
Method yacOperator
Invoke operator.
Signature
yacOperator(intcmd,
  Objecto 
  )  
 :var
Arguments
intcmdCommand, see YAC_OP_xxx
ObjectoRighthandside object
Returns
varUsually nothing, boolean if a comparison command was used (==, !=, ..)
Description

Usually this method returns nothing since the object is directly modified. The scriptengine takes care of duplicating the lefthandside object (this) if +,-,*,/ etc. commands are used.
See also:  


 
 top of page
Method yacOperatorAdd
Add other object "o" to this object.
Signature
yacOperatorAdd(Objecto)
Arguments
ObjectoRighthandside object
See also:  


 
 top of page
Method yacOperatorAssign
Assign other object "o" to this object.
Signature
yacOperatorAssign(Objecto)
Arguments
ObjectoRighthandside object
See also:  


 
 top of page
Method yacOperatorClamp
Clamp this object to the given range.
Signature
yacOperatorClamp(Objectmin,
  Objectmax 
  )  
Arguments
ObjectminMinimum
ObjectmaxMaximum
See also:  


 
 top of page
Method yacOperatorDiv
Divide this object by other object "o".
Signature
yacOperatorDiv(Objecto)
Arguments
ObjectoRighthandside object
See also:  


 
 top of page
Method yacOperatorF32
Invoke float operator.
Signature
yacOperatorF32(intcmd,
  floatf 
  )  
 :var
Arguments
intcmdCommand, see YAC_OP_xxx
floatfRighthandside float value
Returns
varUsually nothing, boolean if a comparison command was used (==, !=, ..)
Description

Also see yacOperator()
See also:  


 
 top of page
Method yacOperatorI
Invoke integer operator.
Signature
yacOperatorI(intcmd,
  inti 
  )  
 :var
Arguments
intcmdCommand, see YAC_OP_xxx
intiRighthandside integer value
Returns
varUsually nothing, boolean if a comparison command was used (==, !=, ..)
Description

Also see yacOperator()
See also:  


 
 top of page
Method yacOperatorInit
Initialize object from other object.
Signature
yacOperatorInit(Objecto)
Arguments
ObjectoTemplate object
Description

This is mostly used for meta classes, e.g. to call constructors, initialize members etc.
See also:  


 
 top of page
Method yacOperatorMul
Multiply this object by other object "o".
Signature
yacOperatorMul(Objecto)
Arguments
ObjectoRighthandside object
See also:  


 
 top of page
Method yacOperatorSub
Subtract other object "o" from this object.
Signature
yacOperatorSub(Objecto)
Arguments
ObjectoRighthandside object
See also:  


 
 top of page
Method yacOperatorWrap
Wrap this object within the given range.
Signature
yacOperatorWrap(Objectmin,
  Objectmax 
  )  
Arguments
ObjectminMinimum
ObjectmaxMaximum
See also:  


 
 top of page
Method yacScanF32
Convert this object to a 32bit float and write to return
Signature
yacScanF32(Floatr)
 :boolean
Arguments
FloatrReceives the 32bit float value
Returns
booleantrue if the conversion succeeded, false otherwise.
Description
object "r".
See also:  


 
 top of page
Method yacScanF64
Convert this object to a 64bit float and write to return
Signature
yacScanF64(Doubler)
 :boolean
Arguments
DoublerReceives the 64bit float value
Returns
booleantrue if the conversion succeeded, false otherwise.
Description
object "r".
See also:  


 
 top of page
Method yacScanI32
Convert this object to a 32bit integer and write to return
Signature
yacScanI32(Integerr)
 :boolean
Arguments
IntegerrReceives the 32bit integer value
Returns
booleantrue if the conversion succeeded, false otherwise.
Description
object "r".
See also:  


 
 top of page
Method yacScanI64
Convert this object to a 64bit integer and write to return
Signature
yacScanI64(Longr)
 :boolean
Arguments
LongrReceives the 64bit integer value
Returns
booleantrue if the conversion succeeded, false otherwise.
Description
object "r".
See also:  


 
 top of page
Method yacSerialize
Serialize this object to the given outputstream.
Signature
yacSerialize(Streamofs,
  booleanbTypeInfo 
  )  
Arguments
StreamofsOutput stream
booleanbTypeInfotrue to include type information, false to serialize just the raw object data
See also:  


 
 top of page
Method yacSerializeClassName
Serialize the class name String to the given outputstream.
Signature
yacSerializeClassName(Streamofs)
Arguments
StreamofsOutput stream
See also:  


 
 top of page
Method yacStreamClose
Close the stream.
Signature
yacStreamClose()
See also:  


 
 top of page
Method yacStreamEOF
Check whether the end of stream has been reached.
Signature
yacStreamEOF():boolean
Returns
booleantrue if EOF was found, false otherwise.
See also:  


 
 top of page
Method yacStreamGetByteOrder
Query the current byteorder.
Signature
yacStreamGetByteOrder():int
Returns
intByteorder, YAC_LITTLEENDIAN (default) or YAC_BIGENDIAN.
See also:  


 
 top of page
Method yacStreamGetErrorCode
Return the last stream error code.
Signature
yacStreamGetErrorCode():int
Returns
intError code. Except for 0=No error, the error code depends on the stream type.
See also:  


 
 top of page
Method yacStreamGetErrorStringByCode
Returns a String representation of the given error code.
Signature
yacStreamGetErrorStringByCode(interrorCode)
 :String
Arguments
interrorCodeThe stream error code
Returns
Stringnew String object
See also:  


 
 top of page
Method yacStreamGetOffset
Return the current stream offset.
Signature
yacStreamGetOffset():int
Returns
intStream offset
See also:  


 
 top of page
Method yacStreamGetSize
Query the total stream size.
Signature
yacStreamGetSize():int
Returns
intStream size or 0 (unknown)
Description

This obviously will only work for limited-size streams like e.g. File.
See also:  


 
 top of page
Method yacStreamOpenLocal
Open a local file for streaming.
Signature
yacStreamOpenLocal(Stringname,
  intaccess 
  )  
 :boolean
Arguments
StringnameLocal filename
intaccess0=read, 1=write, 2=read-write
Returns
booleantrue if the file has been opened, false otherwise.
See also:  


 
 top of page
Method yacStreamOpenLogic
Open a file in the current PAK (.tkx) file for streaming.
Signature
yacStreamOpenLogic(Stringname)
 :boolean
Arguments
StringnameLogic filename
Returns
booleantrue if the file has been opened, false otherwise.
See also:  


 
 top of page
Method yacStreamRead
Read "num" bytes from the stream into Buffer r.
Signature
yacStreamRead(Bufferr,
  intnum 
  )  
 :int
Arguments
BufferrDestination Buffer
intnumNumber of bytes to read
Returns
intNumber of bytes read from Stream.
See also:  


 
 top of page
Method yacStreamReadBuffer
Read a sequence of bytes from the stream and write to Buffer "r".
Signature
yacStreamReadBuffer(Bufferr,
  intoff,
  intnum,
  booleanresize 
  )  
 :int
Arguments
BufferrDestination Buffer
intoffDestination offset in buffer
intnumNumber of bytes to read
booleanresizeIf true, resize the Buffer as required
Returns
intNumber of bytes read
See also:  


 
 top of page
Method yacStreamReadF32
Read a single 32bit float from the stream.
Signature
yacStreamReadF32():float
Returns
floatfloat value
See also:  


 
 top of page
Method yacStreamReadF64
Read a single 64bit float from the stream.
Signature
yacStreamReadF64():Double
Returns
Doublefloat value
See also:  


 
 top of page
Method yacStreamReadI16
Read a single 16bit short from the stream.
Signature
yacStreamReadI16():short
Returns
shortShort
Description

Perform byteorder conversion if necessary.
See also:  


 
 top of page
Method yacStreamReadI32
Read a single 32bit integer from the stream.
Signature
yacStreamReadI32():short
Returns
shortinteger value
Description

Perform byteorder conversion if necessary.
See also:  


 
 top of page
Method yacStreamReadI64
Read a single 64bit integer from the stream.
Signature
yacStreamReadI64():Long
Returns
Longinteger value
Description

Perform byteorder conversion if necessary.
See also:  


 
 top of page
Method yacStreamReadI8
Read a single byte from the stream.
Signature
yacStreamReadI8():byte
Returns
byteByte
See also:  


 
 top of page
Method yacStreamReadLine
Read a String from the stream and write to String "r".
Signature
yacStreamReadLine(Stringr,
  intmaxlen 
  )  
 :int
Arguments
StringrDestination String
intmaxlenMaximum number of chars to read
Returns
intNumber of chars read.
See also:  


 
 top of page
Method yacStreamReadObject
Read a single object from the stream and write to "r".
Signature
yacStreamReadObject(Objectr)
Arguments
Objectr
See also:  


 
 top of page
Method yacStreamReadString
Read a single String from the stream and write to "r".
Signature
yacStreamReadString(Stringr)
 :boolean
Arguments
Stringr
Returns
booleantrue if the String was read, false otherwise.
See also:  


 
 top of page
Method yacStreamSeek
Adjust stream offset.
Signature
yacStreamSeek(intoff,
  intmode 
  )  
Arguments
intoffStream offset
intmodeSeek mode. YAC_BEG (0), YAC_CUR/ (1) or YAC_END (2)
See also:  


 
 top of page
Method yacStreamSetByteOrder
Set the stream byteorder.
Signature
yacStreamSetByteOrder(intbyteorder)
Arguments
intbyteorderYAC_LITTLEENDIAN (default) or YAC_BIGENDIAN.
See also:  


 
 top of page
Method yacStreamSetOffset
Set the current stream offset.
Signature
yacStreamSetOffset(intoff)
Arguments
intoffStream offset
See also:  


 
 top of page
Method yacStreamWrite
Write a sequence of bytes to the stream.
Signature
yacStreamWrite(Bufferb,
  intnum 
  )  
 :int
Arguments
BufferbSource buffer
intnumNumber of bytes to write
Returns
intNumber of bytes written
See also:  


 
 top of page
Method yacStreamWriteBuffer
Write a sequence of bytes to the stream.
Signature
yacStreamWriteBuffer(Bufferb,
  intoff,
  intlen 
  )  
 :int
Arguments
BufferbSource Buffer
intoffSource offset
intlenNumber of bytes to write
Returns
intNumber of bytes written
See also:  


 
 top of page
Method yacStreamWriteF32
Write a single 32bit float to the stream.
Signature
yacStreamWriteF32(floatf)
Arguments
floatfFloat value to write.
See also:  


 
 top of page
Method yacStreamWriteF64
Write a single 64bit float to the stream.
Signature
yacStreamWriteF64(Doublef)
Arguments
DoublefFloat value to write.
See also:  


 
 top of page
Method yacStreamWriteI16
Write a single 16bit short to the stream.
Signature
yacStreamWriteI16(shorts)
Arguments
shortsShort value to write.
Description

Automatic byteorder conversion is performed according to the current stream byteorder.
See also:  


 
 top of page
Method yacStreamWriteI32
Write a single 32bit integer to the stream.
Signature
yacStreamWriteI32(inti)
Arguments
inti
Description

Automatic byteorder conversion is performed according to the current stream byteorder.
See also:  


 
 top of page
Method yacStreamWriteI64
Write a single 64bit integer to the stream.
Signature
yacStreamWriteI64(Longi)
Arguments
Longi
Description

Automatic byteorder conversion is performed according to the current stream byteorder.
See also:  


 
 top of page
Method yacStreamWriteI8
Write a single byte to the stream.
Signature
yacStreamWriteI8(byteb)
Arguments
bytebByte value to write
See also:  


 
 top of page
Method yacStreamWriteString
Write a sequence of characters to the stream.
Signature
yacStreamWriteString(Strings,
  intoff,
  intlen 
  )  
 :int
Arguments
StringsSource String
intoffSource offset
intlenNumber of characters to write
Returns
intNumber of characters written
See also:  


 
 top of page
Method yacToParsableString
Convert this object to a script-parsable String and write to return object "r".
Signature
yacToParsableString(Stringr)
 :boolean
Arguments
StringrReceives the String value
Returns
booleantrue if the conversion succeeded, false otherwise.
See also:  


 
 top of page
Method yacToString
Convert this object to a String and write to return object "r".
Signature
yacToString(Stringr)
 :boolean
Arguments
StringrReceives the String value
Returns
booleantrue if the conversion succeeded, false otherwise.
See also:  


 
 top of page
Method yacValueOfF32
Initialize from 32bit float value.
Signature
yacValueOfF32(floatf)
Arguments
floatfFloat value
See also:  


 
 top of page
Method yacValueOfI
Initialize from 32bit integer value.
Signature
yacValueOfI(inti)
Arguments
intiInteger value
See also:  


 
 top of page
 

Project Modules:core 
Project Classes:Boolean , Buffer , Byte , Class , ClassArray , Condition , Configuration , Double , Envelope , Event , Exception , File , Float , FloatArray , FloatArray128 , FloatArray16 , FloatArray32 , FloatArray64 , FloatArray8 , Function , HashTable , IntArray , IntArray128 , IntArray16 , IntArray32 , IntArray64 , IntArray8 , Integer , List , ListNode , Long , Mailbox , Mutex , Object , ObjectArray , PakFile , PointerArray , Pool , Script , SharedBuffer , Short , Stack , StdErrStream , StdInStream , StdOutStream , Stream , String , String128 , String16 , String32 , String64 , String8 , StringArray , StringIterator , Thread , Time , TKS , TreeNode , UnsignedByte , UnsignedInteger , UnsignedLong , UnsignedShort , Value , ValueArray , Variable 
Project Functions:ceil , exit , floor , GetCurrentThread , getenv , lcchar , mathAbsMaxf , mathAbsMinf , mathAbsMini , mathAbsMini , mathClampf , mathClampi , mathDistancePointPlane2d , mathLerpf , mathMaxf , mathMaxi , mathMinf , mathMini , mathPowerf , mathPoweri , mathSmoothStepf , mathWrapf , mathWrapi , milliSeconds , psystem , putenv , srand , system , ucchar 
All Namespaces:default , ui 
All Projects:core , debugtext , tkfreetype2 , tkmath , tkmidi , tkopengl , tkportaudio , tksdl , tkui , tkunit 


auto-generated by "DOG", the TkScript document generator. Sun, 17/Aug/2014 16:22:27