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

Nextgen Proto Pythonic API: “Add-on” proto for length prefixed serialize/parse #16881

Closed
wants to merge 1 commit into from

Conversation

copybara-service[bot]
Copy link

Nextgen Proto Pythonic API: “Add-on” proto for length prefixed serialize/parse

Added the following methods:
serialize_length_prefixed(message: Message, output) -> None
parse_length_prefixed(message_class: Type[Message], input_bytes: bytes) -> Message

The output of serialize_length_prefixed should be ByteIO or custom buffered IO that data should be written to. The output stream must be buffered, e.g. using
https://docs.python.org/3/library/io.html#buffered-streams.

…ize/parse

Added the following methods:
serialize_length_prefixed(message: Message, output) -> None
parse_length_prefixed(message_class: Type[Message], input_bytes: bytes) -> Message

The output of serialize_length_prefixed should be ByteIO or custom buffered IO that data should be written to. The output stream must be buffered, e.g. using
  https://docs.python.org/3/library/io.html#buffered-streams.

PiperOrigin-RevId: 634637782
Copy link

Auto-closing Copybara pull request

@github-actions github-actions bot closed this May 24, 2024
@github-actions github-actions bot deleted the test_634637782 branch May 24, 2024 10:01
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

Successfully merging this pull request may close these issues.

None yet

1 participant