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

Encode Delimited #75

Open
ido-ran opened this issue Jan 26, 2016 · 1 comment
Open

Encode Delimited #75

ido-ran opened this issue Jan 26, 2016 · 1 comment

Comments

@ido-ran
Copy link

ido-ran commented Jan 26, 2016

I'm writing a client application in iOS that uses ProtocolBuffer with this library.
I have a server written with ProtobufJS, there I'm using both encodeDelimited and decodeDelimited which AFAIK write the length of the message before the message.

The problem is I could not find a match methods for length delimited in ProtoBuf-ObjC. Can you help me understand how to do that?

@ido-ran
Copy link
Author

ido-ran commented Jan 26, 2016

I manage to send a delimited message using the following code:

    PBCodedOutputStream *codedOutput = [PBCodedOutputStream streamWithOutputStream:socketConnection.outputStream];
    [codedOutput writeRawVarint32:msg.serializedSize];
    [msg writeToCodedOutputStream:codedOutput];

I can try to fork this repository and add the functionality.

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

1 participant