brintos

brintos / llvm-project-archived public Read only

0
0
Text · 987 B · a477be4 Raw
31 lines · c
1//===-- CFCData.h -----------------------------------------------*- C++ -*-===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLDB_SOURCE_HOST_MACOSX_CFCPP_CFCDATA_H10#define LLDB_SOURCE_HOST_MACOSX_CFCPP_CFCDATA_H11 12#include "CFCReleaser.h"13 14class CFCData : public CFCReleaser<CFDataRef> {15public:16  // Constructors and Destructors17  CFCData(CFDataRef data = NULL);18  CFCData(const CFCData &rhs);19  CFCData &operator=(const CFCData &rhs);20  ~CFCData() override;21 22  CFDataRef Serialize(CFPropertyListRef plist, CFPropertyListFormat format);23  const uint8_t *GetBytePtr() const;24  CFIndex GetLength() const;25 26protected:27  // Classes that inherit from CFCData can see and modify these28};29 30#endif // LLDB_SOURCE_HOST_MACOSX_CFCPP_CFCDATA_H31