Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

int32 pasererror #18

Open
zyq20130110 opened this issue Sep 22, 2014 · 3 comments
Open

int32 pasererror #18

zyq20130110 opened this issue Sep 22, 2014 · 3 comments

Comments

@zyq20130110
Copy link

        local msg1= person_pb.Person() 
            msg1.personid = 100
            msg1.name = "zhag"
            msg1.email = "[email protected]"
            local pb_data = msg1:SerializeToString()  -- Parse Example 
            print(msg1.personid) 
            print(msg1.name) 
            print(msg1.email)

                           print result is 100  [email protected]

            local msg2 = person_pb.Person() 
            msg2:ParseFromString(pb_data) 
            print(msg2.personid)
            print(msg2.name)
            print(msg2.email)
                           print result is 0 [email protected]

why msg2.personid is 0 ??

@chiuan
Copy link

chiuan commented Oct 20, 2014

@zyq20130110 i have test,i am all right. how about check photo file? the personid is right?

@liqiang0508
Copy link

i have same problem。。。do you fix it?

@liqiang0508
Copy link

I use this as a client,and use nodejs as a sever。but i ParseFromString a int32 data is error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants