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)