starwing / lua-protobuf

A Lua module to work with Google protobuf
MIT License
1.73k stars 387 forks source link

Add meta table operation support for repeated label. #199

Open stillcold opened 2 years ago

stillcold commented 2 years ago

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 commented 2 years ago

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

stillcold commented 2 years ago

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

sonarcloud[bot] commented 9 months ago

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