Cinder  0.8.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | List of all members
cinder::cocoa::SafeNsData Class Reference

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. More...
 
 operator NSData *const ()
 

Detailed Description

Represents an exception-safe Cocoa NSData which behaves like a shared_ptr but can implicitly cast itself to NSData*.

Constructor & Destructor Documentation

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.

Member Function Documentation

cinder::cocoa::SafeNsData::operator NSData *const ( )

The documentation for this class was generated from the following files: