メインコンテンツまでスキップ

II. 提案する FTP 圧縮データモード

バイトサイズは B ビットである。ボックスの上の数字はフィールド長 (ビット単位) を表す。

                                  n bytes of data
/--------/\--------\
1 B-1 / B B \
+---+------+ +--------+ +--------+
Byte String: | 0 | n | | d |. . .| d |
| | | | 1 | | n |
+---+------+ +--------+ +--------+
String of n data bytes d(1),...,d(n)
Count n must be positive

2 B-2 B
+----+------+ +---------+
Replicated Byte: | 1 0| n | | d |
+----+------+ +---------+
String consisting of n replications of the data byte d

2 B-2
+----+------+
Filler String: | 1 1| n |
+----+------+
String of n filler bytes. The filler byte is a "space"
character for ASCII or EBCDIC type, or a binary zero
byte for Image or Local Byte Type.

B B
+----------+ +----------+
Control Escape Sequence: | 0......0 | | C | (see below)
+----------+ +----------+

制御エスケープシーケンスの 2 番目のバイトである制御バイト「C」は、ブロックモードにおけるディスクリプタバイトと同じ符号化とする。これにはファイル終端およびレコード終端の指示が含まれる。ブロックモードのディスクリプタバイトの正確な符号化については現時点で疑問が残っているため、これ以上は規定しない。

APL* の例にならい、フィラー (空白または 0) の意味は型によって決まるものとした。文字型 (ASCII|EBCDIC) と二進型 (Image|Local Byte) の違いである。バイトサイズが送信ホストのワードサイズと等しければ、圧縮モードにより、疎な通知 (sparse notices) を妥当な効率で送ることができる。

* Compare 1 (take) 0 1\`A' with 1 (take) 0 1\2