可变長整數編碼

按照相應標准将輸入可变長整數編碼。

輸入: 文本結果: 二進位位元組

文本輸入

執行後查看結果

範例

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)