正确的文档术语

发布于 2024-08-23 09:15:21 字数 1435 浏览 3 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

久伴你 2024-08-30 09:15:21

首先,分隔符可能是分隔符,尽管我注意到您的文本中同时包含分隔符和分隔符 - 也许分隔符是特殊的分隔符/终止符组合:-)

但是,分隔符通常用于分隔字段,并且通常不存在不管怎样。您拥有的是一个可选的前缀,它规定了以下字段类型。所以我可能会称之为“前缀”或“类型前缀”。

“包含值表达式的格式化字符串”我只是将其称为“值表达式字符串”或“值字符串”以将其更改为较短的形式。

另一个可能的问题:

必须在 -128 到 255(含)范围内,因为它们必须适合 8 字节

我认为您的意思是 8 位。

For a start, deliminator would probably be delimiter, although I notice your text has both delineator and deliminator in it - perhaps deliminator is a special delimiter/terminator combination :-)

However, a delimiter is usually used to separate fields and is usually present no matter what. What you have is an optional prefix which dictates the following field type. So I would probably call that a "prefix" or "type prefix" instead.

The "formatted string containing value expressions" I would just call a "value expression string" or "value string" to change it to a shorter form.

One other possible problem:

must be in the range -128 to 255 (inclusive) as they must fit in 8bytes

I think you mean 8 bits.

内心荒芜 2024-08-30 09:15:21

尝试如下操作:

     ==== Value string encoding  ====
    The value string is at the core of the data used for low level
    transmissions.

    Within the value string the following refixes are used:
    # decimal
    $ Hex
    @ binary
    No prefix - ASCII.

    An optional sign may be included after the delimiter for negative numbers.
    Negative numbers are represented using twos complement.

    The value string may contain multiple values:
    eg: "a#21@1001111$-0F"

    All elements of the value string must represent an 8bit value and must
    be in the range -128 to 255

    When using ASCII representation the following characters that can't be sent
     * The delineator characters: $#@ (use prefixed hex value.)
     * Numbers written immediately after a value that could have
       contained those digits:
      * 0,1,2,3,4,5,6,7,8,9 for decimal
      * 0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f,A,B,C,D,E,F for hex
      * 0,1 for binary


Try something like the following:

     ==== Value string encoding  ====
    The value string is at the core of the data used for low level
    transmissions.

    Within the value string the following refixes are used:
    # decimal
    $ Hex
    @ binary
    No prefix - ASCII.

    An optional sign may be included after the delimiter for negative numbers.
    Negative numbers are represented using twos complement.

    The value string may contain multiple values:
    eg: "a#21@1001111$-0F"

    All elements of the value string must represent an 8bit value and must
    be in the range -128 to 255

    When using ASCII representation the following characters that can't be sent
     * The delineator characters: $#@ (use prefixed hex value.)
     * Numbers written immediately after a value that could have
       contained those digits:
      * 0,1,2,3,4,5,6,7,8,9 for decimal
      * 0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f,A,B,C,D,E,F for hex
      * 0,1 for binary


~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文