Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6e6d7ff

Browse files
protobuf-github-botcopybara-github
authored andcommitted
Internal change
PiperOrigin-RevId: 835447839
1 parent 996e04c commit 6e6d7ff

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

‎src/google/protobuf/port.h‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,22 @@ inline bool IsMemoryPoisoned([[maybe_unused]] const void* p) {
665665
#endif
666666
}
667667

668+
inline constexpr bool ShouldBatchSingularString() {
669+
#ifdef PROTOBUF_INTERNAL_BATCH_SINGULAR_STRING
670+
return true;
671+
#else
672+
return false;
673+
#endif
674+
}
675+
676+
inline constexpr bool ShouldBatchRepeatedString() {
677+
#ifdef PROTOBUF_INTERNAL_BATCH_REPEATED_STRING
678+
return true;
679+
#else
680+
return false;
681+
#endif
682+
}
683+
668684
inline constexpr bool ShouldBatchRepeatedNumeric() {
669685
#ifdef PROTOBUF_INTERNAL_BATCH_REPEATED_NUMERIC
670686
return true;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /