Skip to content

Support for coded streams #482

Open
Open
@a-khabarov

Description

@a-khabarov

C++ and Java implementations of protocol buffers have support for writing and reading multiple messages via CodedOutputStream and CodedInputStream . This is also space-efficient because the size of each message can be represented as a varint.

I think having something similar to CodedOutputStream and CodedInputStream in betterproto would be useful. One use case would be when a Python tool uses betterproto to emit a binary stream of messages using this and then a C++/Java tool can use CodedInputStream to read the stream.

Related Java documentation:

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestmediumMedium effort issue, can fit in a single PR

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions