Byte Class
An 8-bit (1 byte) signed integer. Its value can range from -128 to 127.
This data type can be used either with a Declare statement or within REALbasic. Within REALbasic, it is an alias for Int8.
REALbasic offers both signed and unsigned integer data types that use one, two, four, or eight bytes of memory. The following table summaries these data types.
Data Type | Number of Bytes | Range |
Int8 or Byte | 1 | -128 to 127 |
Int16 | 2 | -32,768 to 32,767 |
Int32 or Integer | √ | -2,147,483,648 to 2,147,483,647 |
Int64 | 8 | -2^63 to 2^63-1 |
UInt8 | 1 | 0 to 255 |
UInt16 | 2 | 0 to 65535 |
UInt32 | √ | 0 to 4,294,967,295 |
UInt64 | 8 | 0 to 2^64-1 |
See Also
Declare statement; CFStringRef, CString, OSType, PString, Ptr, Short, UByte, UShort, WindowPtr, WString data types.