Represents an exception-safe Cocoa NSData which behaves like a shared_ptr but can implicitly cast itself to NSData*. More...
#include <CinderCocoa.h>
Public Member Functions | |
SafeNsData () | |
SafeNsData (const Buffer &buffer) | |
Creates a SafeNsData using an existing cinder::Buffer. The SafeNsData retains a copy of the buffer in order to prevent its deletion. | |
operator NSData *const () |
Represents an exception-safe Cocoa NSData which behaves like a shared_ptr but can implicitly cast itself to NSData*.
cinder::cocoa::SafeNsData::SafeNsData | ( | ) |
cinder::cocoa::SafeNsData::SafeNsData | ( | const Buffer & | buffer | ) |
Creates a SafeNsData using an existing cinder::Buffer. The SafeNsData retains a copy of the buffer in order to prevent its deletion.
cinder::cocoa::SafeNsData::operator NSData *const | ( | ) |