xref: /openbsd-src/gnu/llvm/lldb/source/Host/macosx/cfcpp/CFCData.h (revision f6aab3d83b51b91c24247ad2c2573574de475a82)
1061da546Spatrick //===-- CFCData.h -----------------------------------------------*- C++ -*-===//
2061da546Spatrick //
3061da546Spatrick // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4061da546Spatrick // See https://llvm.org/LICENSE.txt for license information.
5061da546Spatrick // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6061da546Spatrick //
7061da546Spatrick //===----------------------------------------------------------------------===//
8061da546Spatrick 
9dda28197Spatrick #ifndef LLDB_SOURCE_HOST_MACOSX_CFCPP_CFCDATA_H
10dda28197Spatrick #define LLDB_SOURCE_HOST_MACOSX_CFCPP_CFCDATA_H
11061da546Spatrick 
12061da546Spatrick #include "CFCReleaser.h"
13061da546Spatrick 
14061da546Spatrick class CFCData : public CFCReleaser<CFDataRef> {
15061da546Spatrick public:
16061da546Spatrick   // Constructors and Destructors
17061da546Spatrick   CFCData(CFDataRef data = NULL);
18061da546Spatrick   CFCData(const CFCData &rhs);
19061da546Spatrick   CFCData &operator=(const CFCData &rhs);
20*f6aab3d8Srobert   ~CFCData() override;
21061da546Spatrick 
22061da546Spatrick   CFDataRef Serialize(CFPropertyListRef plist, CFPropertyListFormat format);
23061da546Spatrick   const uint8_t *GetBytePtr() const;
24061da546Spatrick   CFIndex GetLength() const;
25061da546Spatrick 
26061da546Spatrick protected:
27061da546Spatrick   // Classes that inherit from CFCData can see and modify these
28061da546Spatrick };
29061da546Spatrick 
30dda28197Spatrick #endif // LLDB_SOURCE_HOST_MACOSX_CFCPP_CFCDATA_H
31