Difference between revisions of "GSNet String"

From BRL-CAD
(mention lack of terminating NULL)
 
Line 3: Line 3:
 
----
 
----
 
==Description==
 
==Description==
A commonly used data type in the GSNet Protocol.  Contains a 4 byte Length field followed by an ascii 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'''. There is no terminating NULL.
  
 
==Fields ==
 
==Fields ==

Latest revision as of 15:25, 28 March 2011


Description[edit]

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

Fields[edit]

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