Difference between revisions of "GSNet String"

(Stub in GSNet String page.)
 
Line 16: Line 16:
 
|UnicodeCharacterArray
 
|UnicodeCharacterArray
 
|uint16[] (2 * Length Bytes)
 
|uint16[] (2 * Length Bytes)
 +
|}
 +
 +
 +
{|style="border-collapse: separate; border-spacing: 0; border-width: 1px; border-style: solid; border-color: #666699; padding: 0;"
 +
|style="border: 1px solid #666699; background-color: #666699; color: #FFFFFF; width: 180px;"|'''Element'''
 +
|style="border: 1px solid #666699; background-color: #666699; color: #FFFFFF; width: 180px;"|'''Length'''
 +
|style="border: 1px solid #666699; background-color: #666699; color: #FFFFFF; width: 180px;"|'''Value'''
 +
|-
 +
|style="border: 1px solid #666699;"|Magic1
 +
|style="border: 1px solid #666699;"|int16 (2 Bytes)
 +
|style="border: 1px solid #666699;"|Always 0x41FE
 +
|-
 
|}
 
|}

Revision as of 14:49, 26 January 2011


Description

A commonly used data type in the GSNet Protocol. Contains a 4 byte Length field followed by a Unicode string of length Length

Fields

Element Length
Length int32 (4 bytes)
UnicodeCharacterArray uint16[] (2 * Length Bytes)


Element Length Value
Magic1 int16 (2 Bytes) Always 0x41FE