summaryrefslogtreecommitdiff
path: root/absl/strings/cord_buffer.cc
diff options
context:
space:
mode:
authorGravatar Derek Mauro <dmauro@google.com>2022-06-06 09:09:23 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2022-06-06 09:10:20 -0700
commit48419595d31609762985a6b08be504ebe6d593e7 (patch)
tree847b61bba7752ec3c7863f8f15484bea0d20a4ce /absl/strings/cord_buffer.cc
parent9cdb98e73118f0485fdf5fadcb3e57ab852e65a1 (diff)
Release absl::CordBuffer
absl::CordBuffer holds data for eventual inclusion within an existing absl::Cord. CordBuffers are useful for building large Cords that may require custom allocation of its associated memory, a pattern that is common in zero-copy APIs. PiperOrigin-RevId: 453212229 Change-Id: I6a8adc3a8d206691cb1b0001a9161e5080dd1c5f
Diffstat (limited to 'absl/strings/cord_buffer.cc')
-rw-r--r--absl/strings/cord_buffer.cc28
1 files changed, 28 insertions, 0 deletions
diff --git a/absl/strings/cord_buffer.cc b/absl/strings/cord_buffer.cc
new file mode 100644
index 00000000..fd4045bd
--- /dev/null
+++ b/absl/strings/cord_buffer.cc
@@ -0,0 +1,28 @@
+// Copyright 2022 The Abseil Authors
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+#include "absl/strings/cord_buffer.h"
+
+#include <cstddef>
+
+#include "absl/base/config.h"
+
+namespace absl {
+ABSL_NAMESPACE_BEGIN
+
+constexpr size_t CordBuffer::kDefaultLimit;
+constexpr size_t CordBuffer::kCustomLimit;
+
+ABSL_NAMESPACE_END
+} // namespace absl