Difference between revisions of "GSNet String"

From BRL-CAD
(Adjust table width)
Line 3: Line 3:
 
----
 
----
 
==Description==
 
==Description==
A commonly used data type in the GSNet Protocol.  Contains a 4 byte Length field followed by a Unicode string of length '''Length'''
+
A commonly used data type in the GSNet Protocol.  Contains a 4 byte Length field followed by an ascii string of length '''Length'''
  
 
==Fields ==
 
==Fields ==
Line 16: Line 16:
 
|style="border: 1px solid #666699;"|''none''
 
|style="border: 1px solid #666699;"|''none''
 
|-
 
|-
|style="border: 1px solid #666699;"|16bit char array
+
|style="border: 1px solid #666699;"|8bit char array
|style="border: 1px solid #666699;"|uint16[] (2 bytes * Length)
+
|style="border: 1px solid #666699;"|uint8[]
 
|style="border: 1px solid #666699;"|''none''
 
|style="border: 1px solid #666699;"|''none''
 
|-
 
|-
 
|}
 
|}

Revision as of 14:59, 24 March 2011


Description

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

Fields

Element Length Default Value
Length uint32 (4 bytes) none
8bit char array uint8[] none