可变长整数编码

按照 可变长整数 格式编码输入数据。

输入: 文本结果: 二进制字节

文本输入

运行后查看结果

案例

A small field value

输入

1

Expected answer

Hexadecimal bytes
OffsetHex bytesASCII
0000000001.
A 7-bit boundary

输入

127

Expected answer

UTF-8 text · exact bytes

The first two-byte value

输入

128

Expected answer

Hexadecimal bytes
OffsetHex bytesASCII
0000000080 01..
The official Protobuf example

输入

150

Expected answer

Hexadecimal bytes
OffsetHex bytesASCII
0000000096 01..
A counter of 300

输入

300

Expected answer

Hexadecimal bytes
OffsetHex bytesASCII
00000000ac 02..
A three-byte boundary

输入

16384

Expected answer

Hexadecimal bytes
OffsetHex bytesASCII
0000000080 80 01...

相关工具

网络

操作参考

查看原始技术文档 (English)