Description
Return octet = payload, leaving the high continuation bit clear to mark the final seven-bit group.
Protocol Buffer integer fields separate a numeric key, signed-value mapping and byte representation. Varint groups carry seven payload bits plus continuation, while ZigZag and sign-extended integer types represent negative values differently.
Return octet = payload, leaving the high continuation bit clear to mark the final seven-bit group.
When to use this tool
Use Varint Terminal Byte From Payload when inspecting one supplied protobuf integer or key-encoding component.
How to use the tool and how it works
- Enter payload. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read octet. Use the output convention below.
Require whole payload in [0,127]. Return octet = payload, leaving the high continuation bit clear to mark the final seven-bit group.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| payload | Whole seven-bit unsigned payload in [0,127]. | Required. Safe integer; minimum 0; maximum 127. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| octet | Octet | Required. Safe integer. |
{
"input": {
"payload": 42
},
"output": {
"octet": 42
}
} Limitations and assumptions
- This writes one terminal unsigned-varint group, not a complete integer encoding, canonicality check or signed ZigZag conversion.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Use a conforming complete serializer and message schema for full wire encoding, payload validation and interoperability.
References
Similar or alternative tools
- Varint Seven Bit Group Writer
Construct one varint octet and lowercase hex spelling from a seven-bit payload and continuation flag.
- Base45 Two Byte Triple Symbols Tool
Compute base45 two byte triple symbols from explicit bounded inputs.