範例
A small field value
輸入
1Expected answer
Hexadecimal bytes| Offset | Hex bytes | ASCII |
|---|---|---|
| 00000000 | 01 | . |
01
A 7-bit boundary
輸入
127Expected answer
UTF-8 text · exact bytes
The first two-byte value
輸入
128Expected answer
Hexadecimal bytes| Offset | Hex bytes | ASCII |
|---|---|---|
| 00000000 | 80 01 | .. |
80 01
The official Protobuf example
輸入
150Expected answer
Hexadecimal bytes| Offset | Hex bytes | ASCII |
|---|---|---|
| 00000000 | 96 01 | .. |
96 01
A counter of 300
輸入
300Expected answer
Hexadecimal bytes| Offset | Hex bytes | ASCII |
|---|---|---|
| 00000000 | ac 02 | .. |
ac 02
A three-byte boundary
輸入
16384Expected answer
Hexadecimal bytes| Offset | Hex bytes | ASCII |
|---|---|---|
| 00000000 | 80 80 01 | ... |
80 80 01