Пример #1
0
        /// <summary>
        /// Creates a new object that is not owned by any other object. The specified
        /// |data| will be copied.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
        /// </remarks>
        public static CfrBinaryValue Create(RemotePtr data, int dataSize)
        {
            var call = new CfxBinaryValueCreateRenderProcessCall();

            call.data     = data.ptr;
            call.dataSize = dataSize;
            call.RequestExecution(CfxRemoteCallContext.CurrentContext.connection);
            return(CfrBinaryValue.Wrap(call.__retval));
        }
Пример #2
0
 /// <summary>
 /// Creates a new object that is not owned by any other object. The specified
 /// |data| will be copied.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
 /// </remarks>
 public static CfrBinaryValue Create(RemotePtr data, int dataSize)
 {
     var call = new CfxBinaryValueCreateRenderProcessCall();
     call.data = data.ptr;
     call.dataSize = dataSize;
     call.RequestExecution(CfxRemoteCallContext.CurrentContext.connection);
     return CfrBinaryValue.Wrap(call.__retval);
 }