pb.hook cannot handle native types
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the unknown type error when calling pb.hook() for the native bytes type. Compare that path with the recursive luatable proto traversal using pb.field(). Done means pb.hook() can handle bytes and encode it into base64 without requiring every field to be fixed manually.
Written by the indexing model from the issue text.
Description
I am trying to hook bytes type to encode it into base64.
While I can hook other types, hooking native types gives me unknown type error.
I tried to recursively traverse the luatable proto representation and fix all the fields of type bytes ( by using pb.field() ), but this is tedious. Moreover, pb.hook() seems to be made exactly for this purpose.
Thanks
- Dominant language
- Lua
- Stars
- 1.9k
- Forks
- 400
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from starwing/lua-protobuf
-
question
Difficulty 3/5 1-2 days Newbie friendliness 45/100
starwing/lua-protobuf#285 · 3 comments ·
-
question
Difficulty 3/5 1-2 days Newbie friendliness 35/100
starwing/lua-protobuf#282 · 4 comments ·
-
question
Difficulty 5/5 Over a week Newbie friendliness 15/100
starwing/lua-protobuf#279 · 2 comments ·
-
question
Difficulty 4/5 3-5 days Newbie friendliness 30/100
starwing/lua-protobuf#278 · 2 comments ·
-
question
Difficulty 4/5 3-5 days Newbie friendliness 30/100
starwing/lua-protobuf#273 · 1 comment ·
All issues in starwing/lua-protobuf
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
-
[Eco] Egg Config Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
pterodactyl/game-eggs#634 ·
-
Feature Request
Difficulty 1/5 Under an hour Newbie friendliness 72/100
Questie/QuestieTrace#33 ·