diff options
author | 2022-12-11 16:43:28 -0800 | |
---|---|---|
committer | 2022-12-11 16:44:18 -0800 | |
commit | ff5644bb34333d2ad7f1abf421d57bda155398e7 (patch) | |
tree | e2fc6335996cb5d96d871e67c0411c8c104233d4 /absl/strings/cord.h | |
parent | 0b8e676c1b83b157786b4766362fd647b5c59e0d (diff) |
Allow Cord to store chunked checksums
PiperOrigin-RevId: 494587777
Change-Id: I41504edca6fcf750d52602fa84a33bc7fe5fbb48
Diffstat (limited to 'absl/strings/cord.h')
-rw-r--r-- | absl/strings/cord.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/absl/strings/cord.h b/absl/strings/cord.h index 6e3da89e..1349b115 100644 --- a/absl/strings/cord.h +++ b/absl/strings/cord.h @@ -76,6 +76,7 @@ #include "absl/base/macros.h" #include "absl/base/port.h" #include "absl/container/inlined_vector.h" +#include "absl/crc/internal/crc_cord_state.h" #include "absl/functional/function_ref.h" #include "absl/meta/type_traits.h" #include "absl/strings/cord_analysis.h" @@ -1002,6 +1003,10 @@ class Cord { }); return H::combine(combiner.finalize(std::move(hash_state)), size()); } + + friend class CrcCord; + void SetCrcCordState(crc_internal::CrcCordState state); + const crc_internal::CrcCordState* MaybeGetCrcCordState() const; }; ABSL_NAMESPACE_END |