WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Support for bigger messages #40

@GoogleCodeExporter

Description

@GoogleCodeExporter
We are using this library, but our messages need bigger strings (~256 chars 
instead of 32).

When we changes MAX_STRING_LEN to 256, whenever a message's total size exceeds 
256, the reading will stop right after the current field is parsed.

The problem seems to be that in the Msg_read_delimited_from(...), this line:

    offset = read_raw_varint32(&size, _buffer, offset);

which then executes this:

    offset = read_raw_byte((char *)&result, _buffer, offset);
    if (result >= 0) {
        *tag = result;
        return offset;
    }

returns at most one byte.

Original issue reported on code.google.com by [email protected] on 27 May 2013 at 12:03

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions