/// <summary> /// Return a pointer to the unmanaged version of this callback. /// </summary> /// <param name="callback">The callback.</param> /// <returns>A pointer to a shadow c++ callback</returns> public static IntPtr ToIntPtr(CommandSink callback) { return(ToCallbackPtr <CommandSink>(callback)); }
/// <summary> /// Return a pointer to the unmanaged version of this callback. /// </summary> /// <param name="callback">The callback.</param> /// <returns>A pointer to a shadow c++ callback</returns> public static IntPtr ToIntPtr(CommandSink callback) { return ToCallbackPtr<CommandSink>(callback); }
/// <summary> /// Streams the contents of the command list to the specified command sink. /// </summary> /// <param name="sink">The sink into which the command list will be streamed.</param> public void Stream(CommandSink sink) { Stream_(CommandSinkShadow.ToIntPtr(sink)); }