範例
Count three substitutions in the classic string example
Byte distance counts changed positions, not insertions or deletions.
輸入
karolin
kathrinExpected answer
3- 分隔符
- 單位
Byte- 輸入類型
Raw string
Find a one-bit change in a two-byte packet
FF versus FE changes one bit in the second byte.
輸入
00ff|00feExpected answer
1- 分隔符
|- 單位
Bit- 輸入類型
Hex
Compare every bit in opposite byte values
Two opposite bytes differ in all 16 bit positions.
輸入
0000|ffffExpected answer
16- 分隔符
|- 單位
Bit- 輸入類型
Hex
Count changed bytes in two IPv4-style headers
Only the final byte differs; this is a short synthetic header fragment.
輸入
45000014|45000028Expected answer
1- 分隔符
|- 單位
Byte- 輸入類型
Hex
Separate byte changes from bit changes in ASCII
ASCII A and a differ by the single 0x20 bit.
輸入
A|aExpected answer
1- 分隔符
|- 單位
Bit- 輸入類型
Raw string
参數
| 参數 | 默認值 | 輸入與選項 |
|---|---|---|
| 分隔符 | "\\n\\n" | 支持 \n、\r 和 \t 等跳脫序列 |
| 單位 | 位元組 | 位元組, 位 |
| 輸入類型 | Raw 字串 | Raw 字串, 十六進位 |