Skip to content

Conversation

@copybara-service
Copy link

Add internal_metadata_locator.h to provide offset-based access to InternalMetadata.

This new header defines InternalMetadataOffset and InternalMetadataResolver to allow locating a message's _internal_metadata_, or any other class's internal_metadata_ member, from a field's address using a precomputed offset. This will allow us to implement GetArena() for message fields without needing to store a copy of the message Arena* in each field that has a GetArena() method.

…InternalMetadata`.

This new header defines `InternalMetadataOffset` and `InternalMetadataResolver` to allow locating a message's `_internal_metadata_`, or any other class's `internal_metadata_` member, from a field's address using a precomputed offset. This will allow us to implement `GetArena()` for message fields without needing to store a copy of the message Arena* in each field that has a `GetArena()` method.

PiperOrigin-RevId: 807402335
@github-actions
Copy link

Auto-closing Copybara pull request

@github-actions github-actions bot closed this Sep 26, 2025
@github-actions github-actions bot deleted the test_807402335 branch September 26, 2025 10:07
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.

1 participant