protocolbuffers / protocolbuffers/protocolbuffers.github.io

Incomprehensible example for `packed` encoding

Open
#267 0 comments 0 reactions 1 assignee View on GitHub

@jguamie is already working on this.

Since Oct 17, 2025.

Dominant language
HTML
Stars
69
Forks
179
PR merge metrics
No merged PRs in 30d

Description

Since 1c34706, the examples for packed encoding in

https://github.com/protocolbuffers/protocolbuffers.github.io/blob/c5d2eda4c8f2db69d1d78f7b3c591909b916498f/content/programming-guides/encoding.md?plain=1#L327

make no sense (to me):

  1. The "hello" string is not contained in the encoded bytes (in contrast to before the mentioned commit).
  2. The numbers 3 270 86942 in the protoscope representations have no connection to the claimed "1, 2 and 3.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.