blob: 6a718f54c0555945a9d7093ca0825c5db31a66f6 [file] [log] [blame]
Chris Lattner24943d22010-06-08 16:52:24 +00001//===-- CFCData.h -----------------------------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#ifndef CoreFoundationCPP_CFData_h_
11#define CoreFoundationCPP_CFData_h_
12
13#include "CFCReleaser.h"
14
15class CFCData : public CFCReleaser<CFDataRef>
16{
17public:
18 //------------------------------------------------------------------
19 // Constructors and Destructors
20 //------------------------------------------------------------------
21 CFCData(CFDataRef data = NULL);
22 CFCData(const CFCData& rhs);
23 CFCData& operator=(const CFCData& rhs);
24 virtual ~CFCData();
25
26 CFDataRef Serialize(CFPropertyListRef plist, CFPropertyListFormat format);
27 const uint8_t* GetBytePtr () const;
28 CFIndex GetLength () const;
29protected:
30 //------------------------------------------------------------------
31 // Classes that inherit from CFCData can see and modify these
32 //------------------------------------------------------------------
33};
34
35#endif // #ifndef CoreFoundationCPP_CFData_h_