Value object
Property | Description | Access | Type |
---|---|---|---|
Value.size | Get the Value size in memory | readonly | number |
Value.type | Get the type of the C Value | readonly | string |
Operation | Description |
---|---|
Value concatenation | Concatenates the Value with another string |
Value comparison | Compares the Value |
String conversion | Converts the Value to a Lua string |
Mathematical operations | Uses the Value with various Lua mathematical operators |
#Value length operator | Get the size of the Value in memory |
Method | Description | Return value |
---|---|---|
Value.constructor() | Value object constructor | Value |
Value:as() | Cast the Value to another C type | Value |
Value:tonumber() | Convert the C Value to a Lua number | number |
Value:tostring() | Convert the C Value to a Lua string | string |