V2EX  ›  英汉词典
Enqueued related words: Bitfield

Flag Byte

定义 / Definition

flag byte(标志字节):在二进制通信协议或文件格式中使用的一个字节(8 位),其中各个位(bit)常被用来表示多个开关状态、选项或控制信息;有时也特指帧/报文中的固定标志字节(用于标记起止或同步)。

发音 / Pronunciation

/flæɡ baɪt/

词源 / Etymology

flag 原指“旗帜、信号”,引申为“用于指示状态的标记”;在计算机语境里常指“标志位/标志”。byte 是计算机术语(20 世纪中期出现),表示“字节”,最初与 bit(二进制位)相对应,常被解释为从 bite 的谐音/改写而来,用来表示一组可操作的数据单位。合起来 flag byte 就是“用一个字节承载标志信息”。

例句 / Examples

Set the flag byte to 0x01.
把标志字节设为 0x01。

The decoder reads the flag byte first, then decides whether the payload is compressed or encrypted.
解码器会先读取标志字节,然后再判断载荷是否经过压缩或加密。

相关词 / Related Words

文学与作品 / Literary Works

  • RFC 1662 PPP in HDLC-like Framing(常讨论帧定界用的 flag byte/flag sequence,如 0x7E 的标志字节概念)
  • 《TCP/IP Illustrated, Volume 1》(W. Richard Stevens;在链路层/帧格式讨论中常涉及“标志字段/标志字节”的用法)
  • 《PNG: The Definitive Guide》(O’Reilly;在文件格式与分块结构说明中常出现“标志字节/标志位”的描述)
关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   639 人在线   最高记录 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 20:46 · PVG 04:46 · LAX 12:46 · JFK 15:46
♥ Do have faith in what you're doing.