Giter VIP home page Giter VIP logo

Comments (1)

cloudwu avatar cloudwu commented on July 20, 2024

这是一个问题,但暂时不想改。如果修改会让只读的应用环境的性能下降。

发自我的 iPhone

在 2014年3月6日,下午5:28,dulm [email protected] 写道:

message EnterMapNotice
{
required bool is_login = 1;
repeated limit.Datum limit_dt = 2;
}

local enData = protobuf.encode("ic.scene.EnterMapNotice", {is_login = true})
local deData1 = protobuf.decode("ic.scene.EnterMapNotice", enData)
table.insert(deData1.limit_dt, {aaa = 1})

local enData = protobuf.encode("ic.scene.EnterMapNotice", {is_login = true})
local deData2 = protobuf.decode("ic.scene.EnterMapNotice", enData)
print(deData2.limit_dt, deData2.limit_dt[1], deData2.limit_dt[1].aaa)
---这里deData2.limit_dt[1]应该没数据的,被打印出来了

对repeate字段,如果无数据,进行修改后。
会影响后续所有此字段无数据的包。

应该是都指向空的默认table,而非生成新的table的原因。

不管是否可修改,留给其他用户提个醒。


Reply to this email directly or view it on GitHub.

from pbc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.