spin6lock / python-sproto

python binding to sproto

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sproto c api update

cloudwu opened this issue · comments

cloudwu/sproto@527c6ae

因为 encode 的 callback 需要返回 0 用来表示空值. 而之前操作 string 的时候, 空串会返回长度 0 . 这样含义就混淆了, 会导致空串等价于 nil .

所以定义 encode string 的时候, string 应返回长度 + 1 .

你看看跟进一下。