32 return CFDataGetLength(data);
39 return CFDataGetBytePtr(data);
44 CFPropertyListFormat format) {
45 CFAllocatorRef alloc = kCFAllocatorDefault;
48 ::CFWriteStreamCreateWithAllocatedBuffers(alloc, alloc));
49 ::CFWriteStreamOpen(stream.
get());
50 CFIndex len = ::CFPropertyListWrite(plist, stream.
get(), format, 0,
nullptr);
53 kCFStreamPropertyDataWritten));
54 ::CFWriteStreamClose(stream.
get());
CFCData(CFDataRef data=NULL)
const uint8_t * GetBytePtr() const
CFIndex GetLength() const
CFDataRef Serialize(CFPropertyListRef plist, CFPropertyListFormat format)
CFCData & operator=(const CFCData &rhs)
void reset(CFDataRef ptr=NULL)