可变长整数解码

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

输入: 文本 (UTF-8) / 文件结果: 文本

文本输入

运行后查看结果

案例

Turn the official three-byte Protobuf message into a named field — step 2

Show how 08 is a field tag and 96 01 represents 150; the schema supplies the field name.

输入

d01dda243abf602c-varint-150.bin

2 bytes

下载

Expected answer

150
A small field value

输入

4bf5122f344554c53bde2ebb.bin

1 bytes

下载

Expected answer

1
A 7-bit boundary

输入

620bfdaa346b088fb49998d9.bin

1 bytes

下载

Expected answer

127
The first two-byte value

输入

4f2e968b543c835e6648ddcc.bin

2 bytes

下载

Expected answer

128
The official Protobuf example

输入

d01dda243abf602c30136112.bin

2 bytes

下载

Expected answer

150
A counter of 300

输入

6ab5d0d823d6c395820281f3.bin

2 bytes

下载

Expected answer

300
A three-byte boundary

输入

893f4b7cac0109bc10726e83.bin

3 bytes

下载

Expected answer

16384

相关工具

网络

操作参考

查看原始技术文档 (English)