VarIntでエンコード

対応する標準に従って “VarInt” で入力をエンコードします。

入力: テキスト結果: バイナリのバイト列

テキスト入力

実行すると結果が表示されます

使用例

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)