1 //===-- CFCData.h -----------------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #ifndef CoreFoundationCPP_CFData_h_
11 #define CoreFoundationCPP_CFData_h_
13 #include "CFCReleaser.h"
15 class CFCData : public CFCReleaser<CFDataRef> {
17 //------------------------------------------------------------------
18 // Constructors and Destructors
19 //------------------------------------------------------------------
20 CFCData(CFDataRef data = NULL);
21 CFCData(const CFCData &rhs);
22 CFCData &operator=(const CFCData &rhs);
25 CFDataRef Serialize(CFPropertyListRef plist, CFPropertyListFormat format);
26 const uint8_t *GetBytePtr() const;
27 CFIndex GetLength() const;
30 //------------------------------------------------------------------
31 // Classes that inherit from CFCData can see and modify these
32 //------------------------------------------------------------------
35 #endif // #ifndef CoreFoundationCPP_CFData_h_