Skip to content

matrix3d/JProtoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JProtoc

protoc with as3 will js etc

code just like protobuf.

put YourMsg.as and jprotoc_as3/src to your project

//write
var msg:YourMsg=new YourMsg;
msg.field1=1;
var bytes:ByteArray = msg.writeTo(null);

//read
var msg:YourMsg=new YourMsg;
msg.readFrom(input,len);
trace(msg.field1);

compile

1.download protobuf 2.5 from the protobuf main page.

2.download JProtoc from the git.

3.enter bat fold.and change the path with your path protobuf and jProtoc.

4.run jprotocas3app.bat.and your can get the YourMsg.as

About

protoc with js as etc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published