原文:protobuf的lua版

推薦個protobuf的lua版 以前項目客戶端lua,通信協議是protobuf,用網易的proto gen lua,使用過程遇到些問題需要繞,比如: 每次更改 增加proto都要生成新的文件,代碼規模劇增 由於lua本身,每個文件最大文件內全局local變量不能超過 個,所以當proto規模太大時,生成的 lua文件就不能用,需要把proto拆分 我之前做proto gen lua的集成,好像 ...

2014-12-11 20:38 0 2737 推薦指數:

查看詳情

lua環境中使用protobuf

最近在cocos2dx的項目中,需要在LUA腳本層使用protobuf協議。官方已經推出了很多種語言的版本。但唯獨LUA版本不全。於是開始研究protobufLUA下的實現,將完整的過程記錄了下來,希望對其它人能有所幫助。 1、下載protoc-gen-lua 可以通過HG從服務器(hg ...

Wed Sep 13 18:43:00 CST 2017 0 10287
Golangprotobuf編譯

官方網址: https://developers.google.com/protocol-buffers/ (需要翻牆) 代碼倉庫: https://github.com/google/protobuf (C++) https://github.com/golang/protobuf ...

Fri Mar 03 06:19:00 CST 2017 0 2452
pythonprotobuf安裝

1. 下載protobuf源代碼(當前最新版本為:2.5.0) #cd /opt #wget https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz 2. 解壓,編譯,安裝 #tar zxvf ...

Mon Oct 06 22:36:00 CST 2014 0 11064
pythonprotobuf 安裝

轉自:http://www.tuicool.com/articles/VfQfM3 1. 下載protobuf源代碼(當前最新版本為:2.5.0) #cd /opt #wget https://protobuf.googlecode.com/files ...

Tue Mar 31 00:39:00 CST 2015 0 2209
xLua下使用lua-protobuf

本文發表於程序員劉宇的博客,轉載請注明來源:https://www.cnblogs.com/xiaohutu/p/12168781.html 前言 protobuf作為一種通用套接字格式,各種插件里,最本質、最關鍵的就是基於二進制的兩個操作: 1. 根據proto文件打包出二進制數據 ...

Thu Feb 27 09:20:00 CST 2020 0 1002
xLua下使用lua-protobuf

本文發表於程序員劉宇的博客,轉載請注明來源:https://www.cnblogs.com/xiaohutu/p/12168781.html 前言 protobuf作為一種通用套接字格式,各種插件里,最本質、最關鍵的就是基於二進制的兩個操作: 1. 根據proto文件打包出二進制數據 ...

Wed Jan 22 02:47:00 CST 2020 0 6742
cocos2dx 3.8.1 lua集成protobuf

目前lua集成protobuf主要有兩種方式 1. protobuf-gen-lua方案 https://github.com/sean-lin/protoc-gen-lua 參照說明即可集成 這個方案是將proto文件導出成lua文件, 使用起來稍微麻煩, 不能直接創建lua ...

Fri Oct 30 08:23:00 CST 2015 0 2752
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM