InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IDResource Struct Reference

#include <IDResourceShell.h>

Public Types

typedef base_type data_type
 

Public Member Functions

 IDResource (IDResourcePrivateWrapper *resource)
 
virtual ~IDResource ()
 
void * Get () const
 
size_t Length () const
 
bool16 IsValid () const
 

Detailed Description

Struct to hold shared pointer to a resource wrapper so clients don't have to worry about memory management

Constructor & Destructor Documentation

IDResource::IDResource (IDResourcePrivateWrapper * resource)

Constructor

Parameters
resource[IN] resource wrapper to manage
virtual IDResource::~IDResource ()
inlinevirtual

Destructor

Member Function Documentation

void* IDResource::Get () const

Returns a pointer to the managed resource buffer

Returns
pointer to the resource buffer
bool16 IDResource::IsValid () const

Returns true if this resource wrapper is wrapping an actual and valid resource

Returns
true if wrapping a valid resource
size_t IDResource::Length () const

Returns the length of the managed resource buffer

Returns
length of the resource buffer