$ByteOrdering

$ByteOrdering

给出您计算机系统中二进制数据的本机字节序.

更多信息

  • $ByteOrdering 的可能值是 +1-1.
  • +1 相应于高位优先(适合于 680x0 和许多其它处理器); -1 相应于低位优先(适合于 x86 处理器).
  • +1 相应于首先处理最重要字节; -1 首先处理最次要字节.
  • +1 是从 IntegerDigits[n,256] 获得的序.
  • $ByteOrdering 给出 ImportExport 中 选项 ByteOrdering 的缺省设置.

范例

基本范例  (2)

这台计算机上的字节序:

以逆字节序的方式读入一个字节流:

纠正字节序:

Wolfram Research (1999),$ByteOrdering,Wolfram 语言函数,https://reference.wolfram.com/language/ref/$ByteOrdering.html.

文本

Wolfram Research (1999),$ByteOrdering,Wolfram 语言函数,https://reference.wolfram.com/language/ref/$ByteOrdering.html.

CMS

Wolfram 语言. 1999. "$ByteOrdering." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/$ByteOrdering.html.

APA

Wolfram 语言. (1999). $ByteOrdering. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/$ByteOrdering.html 年

BibTeX

@misc{reference.wolfram_2024_$byteordering, author="Wolfram Research", title="{$ByteOrdering}", year="1999", howpublished="\url{https://reference.wolfram.com/language/ref/$ByteOrdering.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_$byteordering, organization={Wolfram Research}, title={$ByteOrdering}, year={1999}, url={https://reference.wolfram.com/language/ref/$ByteOrdering.html}, note=[Accessed: 22-November-2024 ]}