Skip to content

Conversation

sgatev
Copy link

@sgatev sgatev commented May 1, 2023

This patch adds the following methods to GeneratedMessage:

  • mergeFromBufferFrozen
  • mergeFromCodedBufferReaderFrozen
  • mergeFromJsonFrozen
  • mergeFromJsonMapFrozen

All of them add to the current message by deserializing the provided data and mark the new parts of the message (including the message itself) as read-only.

Note that sub-messages that are already part of the current message are not marked as read-only.

Closes #627

This patch adds the following methods to `GeneratedMessage`:
* `mergeFromBufferFrozen`
* `mergeFromCodedBufferReaderFrozen`
* `mergeFromJsonFrozen`
* `mergeFromJsonMapFrozen`

All of them add to the current message by deserializing the provided
data and mark the new parts of the message (including the message
itself) as read-only.

Note that sub-messages that are already part of the current message are
not marked as read-only.

Closes #627
@sgatev sgatev closed this by deleting the head repository Mar 10, 2024
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.

Freeze messages during parsing to avoid freeze pass

1 participant