You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.
seems that, there is a metatable for table 'list', when you access any field of table 'list', it will decode sub-fields of 'list' automatic for you.
On Dec 23, 2012, at 8:28 PM, yihuang wrote:
The decode api only decode one layer.
For example, a message like this:
message Detail {
...
}
message List {
repeated Detail details;
}
I want to decode a list, i have to manually decode details with a loop:
local list = protobuf.decode('List', buffer)
for _, buf in list.details or {} do
local detail = protobuf.decode(unpack(buf))
end
—
Reply to this email directly or view it on GitHub.
The decode api only decode one layer.
For example, a message like this:
I want to decode a list, i have to manually decode details with a loop:
Is there an api to decode it recursively, or is it possible to implement this using a lua function.
The text was updated successfully, but these errors were encountered: