Difference between revisions of "GSNet String"
From BRL-CAD
(mention lack of terminating NULL) |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
---- | ---- | ||
==Description== | ==Description== | ||
− | A commonly used data type in the GSNet Protocol. Contains a 4 byte Length field followed by | + | 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 == | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{|style="border-collapse: separate; border-spacing: 0; border-width: 1px; border-style: solid; border-color: #666699; padding: 0;" | {|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;"|'''Element''' | ||
− | |style="border: 1px solid #666699; background-color: #666699; color: #FFFFFF; width: | + | |style="border: 1px solid #666699; background-color: #666699; color: #FFFFFF; width: 230px;"|'''Length''' |
− | |style="border: 1px solid #666699; background-color: #666699; color: #FFFFFF; width: 180px;"|'''Value''' | + | |style="border: 1px solid #666699; background-color: #666699; color: #FFFFFF; width: 180px;"|'''Default Value''' |
+ | |- | ||
+ | |style="border: 1px solid #666699;"|Length | ||
+ | |style="border: 1px solid #666699;"|uint32 (4 bytes) | ||
+ | |style="border: 1px solid #666699;"|''none'' | ||
|- | |- | ||
− | |style="border: 1px solid #666699;"| | + | |style="border: 1px solid #666699;"|8bit char array |
− | |style="border: 1px solid #666699;"| | + | |style="border: 1px solid #666699;"|uint8[] |
− | |style="border: 1px solid #666699;"| | + | |style="border: 1px solid #666699;"|''none'' |
|- | |- | ||
|} | |} |