-
Notifications
You must be signed in to change notification settings - Fork 11
Description
When writing a string, a lot of the examples show something like the following
[S][i][5][hello]
However, [i] means that the following byte represents a signed byte number which can be from -128 to 127. What does it mean when a negative value is sent? Is this supposed to be interpreted as a [U] which is an unsigned byte? Can we use [U] if the length of the string is from 0 to 255? Or must we use [I] (16bit) for lengths that are from 128 to 255? I realize there are no "unsigned" numbers bigger than the one unsigned number defined by [U], but it does make sense that a negative number should never be used for a string length. Bottom line is can we use [U] for the string length byte. It makes sense to do so but the spec is not clear on this issue.