Coding

 Reply to this postStart new topic

[SA]Data Types

Deji
post Apr 13 2010, 04:39 AM
Post #1


Coding like a Rockstar!

Group Icon

Posts: 1,468
From: ???
Joined: 28-May 09



The data type is written in hex. I thought it was fitting since everything that you can do with this info is done using hex anyway.

Found by decompiling a CLEO file which had opcodes that used each data type listed using HexDen. This info is helpful for using Sanny's hex...end structure to insert raw data into the script.

Data TypeSize (bytes)Extra Info
014Integer - 32 bits (max 2147483647)
023Global Var
033Local Var
041Int - 8 bits (127 max)
052Int - 16 bits (32767 max)
064Float - 32 bits
076Global Array Var
086Local Array Var
0988 byte (short) string
0A2Global 8 byte (short) string var
0B3Local 8 byte (short) string var
0C6Global 8 byte (short) string array var (internally used the same as 12)
0D6Local 8 byte (short) string array var (internally used the same as 13)
0Eup to 127 (0x7F)Varlength string - The next byte gives the length of a string.
0F1616 byte (long) string
102Global varlength string var
112Local varlength string var
126Global varlength string array var (internally used the same as 0C)
136Local varlength string array var (internally used the same as 0D)


The max's simply tell you the maximum value that each data type can take on (they can also take the same amount in negative).

An 8 bit integer can only hold numbers from -128 to 127. Maximum varlen string is 127.


--------------------
Go to the top of the page
 
+Quote Post
Reply to this postStart new topic

2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members: