Inheritance diagram for CP_PropertyList::BinaryData:

Node members that need overloading | |
| virtual NodeType_t | NodeType () const throw () |
| virtual void | PrintToLog (CP_LogFile &inLogFile, SInt32 inLevel=0, SInt32 inIndentLevel=0) const |
| virtual CFTypeRef | GetNodeCFRef () const |
| static BinaryData * | FromXMLData (CP_InStream &inXMLDataStream) |
Public Member Functions | |
| BinaryData * | MakeMutable () const |
| Make a mutable binary data object with the same contents. | |
| virtual void | WriteXMLData (CP_OutStream &inXMLDataStream) const |
Constructor/Destructor | |
| BinaryData () | |
| BinaryData (const void *inBuffer, UInt32 inBufferSize, bool inMutable=false) | |
| BinaryData (const BinaryData &inSrc) | |
| BinaryData (CFDataRef inDataRef, bool inRetain=true) | |
| virtual | ~BinaryData () throw () |
immutable operations | |
Return byte size of data. | |
| UInt32 | GetDataSize () const |
| const void * | GetDataPtr () const |
| Return an immutable pointer to the data. | |
| UInt32 | CopyBytes (void *inBuffer, UInt32 inByteCount, UInt32 inStartOffset=0) const |
| Copy the data into the specified buffer. | |
mutable members (will/can modify data) | |
Get a mutable pointer to the data. | |
| void * | GetMutableDataPtr () |
| void | SetDataSize (UInt32 inNewDataSize) |
| Change the byte size of the data. | |
| void | IncreaseDataSize (UInt32 inExtraSize) |
| Increase the byte size of the data, filling with zeroes. | |
| void | AppendBytes (const void *inBuffer, UInt32 inByteCount) |
| void | ReplaceBytes (const void *inBuffer, UInt32 inByteCount, UInt32 inStartOffset, UInt32 inBytesToReplace) |
| void | DeleteBytes (UInt32 inStartOffset, UInt32 inByteCount) |
Static Public Member Functions | |
| static Node * | FromXMLData (CP_InStream &inXMLDataStream, NodeType_t inExpectedNodeType=NodeType_Any) |
| static Node * | CreateNodeForCFObject (CFTypeRef inObject) |
Private Member Functions | |
| CFMutableDataRef | GetMutableCFRef () |
| operator TMutableCFRef () | |
| void | AttachRefMutable (CFMutableDataRefinMutableRef, bool inRetain) |
| void | AttachRef (CFDataRefinRef, bool inRetain) |
| CFMutableDataRef | DetachRefMutable () |
| void | MakeMutable () |
| CFMutableDataRef | MutableCopy (CFDataRefinCFRef) |
| CFDataRef | DetachRef () |
| CFDataRef | GetCFRef () const |
| bool | IsValid () const |
Private Attributes | |
| CFDataRef | fCFObject |
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
||||||||||||
|
|
|
|
Returns a mutable binary data object with the same contents as this object. It's up to the implementation to implement some copy-on-write mechanism, so in general, you shouldn neiter assume to get back the same object, nor assume it's a new object...
|
|
|
Implements CP_PropertyList::Node. |
|
|
|
|
||||||||||||||||
|
Implements CP_PropertyList::Node. |
|
|
Implements CP_PropertyList::Node. |
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
Add a reference to our object, returning the new reference count.
|
|
|
Remove a reference to our object, returning the new reference count. If the count is 0, then this object is also deleted, and 0 is returned.
|
|
|
Add the object to the topmost auto-release pool. This will ensure that the object is eventually released.
|
|
|
Returns the current ref count.
|
|
|
Returns a mutable CFRef for this object. If the object is not mutable already, then it is first made mutable before returning the CFRef.
|
|
|
operator TMutableCFRef to return the mutable CFRef object for this class.
|
|
||||||||||||
|
Attach a reference to the passed in CFRef.
|
|
||||||||||||
|
Attach a reference to the passed in CFRef.
Reimplemented from CP_CFObject< CFDataRef >. |
|
|
Detach a reference to the CFRef maintained by this object. If the object is not mutable, it is first made mutable.
|
|
|
Turns this object we are storing into a mutable version.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.4.0