// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef PARTITION_ALLOC_PARTITION_ALLOC_BASE_STRINGS_CSTRING_BUILDER_H_ #define PARTITION_ALLOC_PARTITION_ALLOC_BASE_STRINGS_CSTRING_BUILDER_H_ #include <cstddef> #include "partition_alloc/build_config.h" #include "partition_alloc/partition_alloc_base/component_export.h" #if !PA_BUILDFLAG(IS_WIN) #include <unistd.h> #endif namespace partition_alloc::internal::base::strings { // Similar to std::ostringstream, but creates a C string, i.e. nul-terminated // char-type string, instead of std::string. To use inside memory allocation, // this method must not allocate any memory with malloc, aligned_malloc, // calloc, and so on. class PA_COMPONENT_EXPORT(PARTITION_ALLOC_BASE) CStringBuilder { … }; } // namespace partition_alloc::internal::base::strings #endif // PARTITION_ALLOC_PARTITION_ALLOC_BASE_STRINGS_CSTRING_BUILDER_H_