Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add meta table operation support for repeated label. #199

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stillcold
Copy link

Fix #197.

use it like this:

local array_mt = {}
pb.repeated_mt(array_mt)

Then we can decode messages with all empty table generated by repeated label use array_mt as meta table.

@starwing
Copy link
Owner

额……功能实现不着急啊……比如你现在的实现就漏了好几个地方,而且有些地方的接口是和空message共用的不能这么简单加。现在应该先讨论下接口到底怎么设计的问题。如果你只是自用,那么这样对你而言应该问题不大~

@stillcold
Copy link
Author

好的呢,老哥,我先自己这么用着,等你们修好了,我再merge一下你们更全面的版本好了

Copy link

sonarcloud bot commented Nov 19, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell B 6 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

通过cjson序列化pb.decode中空数组的问题
2 participants