{{+bindTo:partials.standard_nacl_article}}

| typedef ::pp::internal::CompletionCallbackWithOutputBase < T, internal::ExtCallbackOutputTraits < T > > | BaseType |
| ExtCompletionCallbackWithOutput (typename BaseType::OutputStorageType *output) | |
| ExtCompletionCallbackWithOutput (PP_CompletionCallback_Func func, void *user_data, typename BaseType::OutputStorageType *output) | |
| ExtCompletionCallbackWithOutput (PP_CompletionCallback_Func func, void *user_data, int32_t flags, typename BaseType::OutputStorageType *output) |
ExtCompletionCallbackWithOutput is similar to CompletionCallbackWithOutput, but used by APIs within the pp::ext namespace.
Usually it is used with the CompletionCallbackFactory's NewExtCallbackWithOutput.
| typedef ::pp::internal::CompletionCallbackWithOutputBase< T, internal::ExtCallbackOutputTraits<T> > pp::ext::ExtCompletionCallbackWithOutput< T >::BaseType |
| pp::ext::ExtCompletionCallbackWithOutput< T >::ExtCompletionCallbackWithOutput | ( | typename BaseType::OutputStorageType * | output | ) | [inline, explicit] |
The default constructor will create a blocking ExtCompletionCallbackWithOutput that references the given output data.
| [in] | output | A pointer to the data associated with the callback. The caller must ensure that this pointer outlives the completion callback. OutputStorageType is either ext::internal::ArrayVarOutputAdapterWithStorage<U> (if the template parameter T is of the form std::vector<U>) or ext::internal::VarOutputAdapterWithStorage<T> (otherwise). |
Note: Blocking completion callbacks are only allowed from background threads.
| pp::ext::ExtCompletionCallbackWithOutput< T >::ExtCompletionCallbackWithOutput | ( | PP_CompletionCallback_Func | func, |
| void * | user_data, | ||
| typename BaseType::OutputStorageType * | output | ||
| ) | [inline] |
A constructor for creating an ExtCompletionCallbackWithOutput that references the given output data.
| [in] | func | The function to be called on completion. |
| [in] | user_data | The user data to be passed to the callback function. This is optional and is typically used to help track state in case of multiple pending callbacks. |
| [in] | output | A pointer to the data associated with the callback. The caller must ensure that this pointer outlives the completion callback. |
| pp::ext::ExtCompletionCallbackWithOutput< T >::ExtCompletionCallbackWithOutput | ( | PP_CompletionCallback_Func | func, |
| void * | user_data, | ||
| int32_t | flags, | ||
| typename BaseType::OutputStorageType * | output | ||
| ) | [inline] |
A constructor for creating an ExtCompletionCallbackWithOutput that references the given output data.
| [in] | func | The function to be called on completion. |
| [in] | user_data | The user data to be passed to the callback function. This is optional and is typically used to help track state in case of multiple pending callbacks. |
| [in] | flags | Bit field combination of PP_CompletionCallback_Flag flags used to control how non-NULL callbacks are scheduled by asynchronous methods. |
| [in] | output | A pointer to the data associated with the callback. The caller must ensure that this pointer outlives the completion callback. |