Skip to content

Data Types

Joshua Scott edited this page Oct 8, 2015 · 4 revisions

Common Data Types

This is a list of common sendable data types used in the SOE protocol.

Type C# Description
Boolean bool True/False, Yes/No, 1/0. etc
UInt8 byte A single unsigned byte. Max value of 255.
UInt16 ushort A unsigned short (2 bytes). Max value of 65,535.
UInt32 uint A unsigned integer (4 bytes). Max value of 4,294,967,295.
UInt64 ulong A unsigned long (8 bytes). So big you don't need to worry.
Int8 sbyte A single signed byte. Max value of 127.
Int16 short A single signed short (2 bytes). Max value of 32,767.
Int32 int A single signed integer (4 bytes). Max value of 2,147,483,647.
Int64 long A single signed long (8 bytes).
AString string An ASCII encoded string with a UInt32 length at the start.
UString string A UNICODE encoded string with a UInt32 length at the start.
NString string A null-terminated string. Ends when the reader reaches a 0x00.
Blob byte[] A blob is a byte-array with a UInt32 length at the start.
Length N/A { byte l, [byte n, byte[n] b] } If byte l is 0xFF, then the following byte is how many bytes to add onto the first, and then the bytes. For example, FF 01 01 would equal 256.

Clone this wiki locally