//===-- DataBufferHeap.h ----------------------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// #ifndef LLDB_UTILITY_DATABUFFERHEAP_H #define LLDB_UTILITY_DATABUFFERHEAP_H #include "lldb/Utility/DataBuffer.h" #include "lldb/lldb-types.h" #include "llvm/ADT/StringRef.h" #include <cstdint> #include <vector> namespace lldb_private { /// \class DataBufferHeap DataBufferHeap.h "lldb/Core/DataBufferHeap.h" /// A subclass of DataBuffer that stores a data buffer on the heap. /// /// This class keeps its data in a heap based buffer that is owned by the /// object. This class is best used to store chunks of data that are created /// or read from sources that can't intelligently and lazily fault new data /// pages in. Large amounts of data that comes from files should probably use /// DataBufferLLVM, which can intelligently determine when memory mapping is /// optimal. class DataBufferHeap : public WritableDataBuffer { … }; } // namespace lldb_private #endif // LLDB_UTILITY_DATABUFFERHEAP_H